Skip to content

Commit

Permalink
Add vanity URLs for go packages
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Pereira <[email protected]>
  • Loading branch information
joaopapereira committed Oct 13, 2023
1 parent 2927edb commit 89443d1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/content/imgpkg/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "imgpkg"
repo: "https://github.com/carvel-dev/imgpkg"
packages: ["carvel.dev/imgpkg"]
---

<div class="hero subpage imgpkg">
Expand Down
2 changes: 2 additions & 0 deletions site/content/kapp-controller/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "kapp-controller"
repo: "https://github.com/carvel-dev/kapp-controller"
packages: ["carvel.dev/kapp-controller"]
---

<div class="hero subpage kapp-controller">
Expand Down
2 changes: 2 additions & 0 deletions site/content/kapp/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "kapp"
repo: "https://github.com/carvel-dev/kapp"
packages: ["carvel.dev/kapp"]
---

<div class="hero subpage kapp">
Expand Down
2 changes: 2 additions & 0 deletions site/content/kbld/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "kbld"
repo: "https://github.com/carvel-dev/kbld"
packages: ["carvel.dev/kbld"]
---

<div class="hero subpage kbld">
Expand Down
2 changes: 2 additions & 0 deletions site/content/vendir/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "vendir"
repo: "https://github.com/carvel-dev/vendir"
packages: ["carvel.dev/vendir"]
---

<div class="hero subpage vendir">
Expand Down
2 changes: 2 additions & 0 deletions site/content/ytt/_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "Carvel - ytt"
repo: "https://github.com/carvel-dev/ytt"
packages: ["carvel.dev/ytt"]
---

<script src="js/deps.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions site/themes/carvel/layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-touch-fullscreen" content="yes" />

{{ if .Params.packages }}
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="go-import" content="{{ index .Params.packages 0 }} git {{ .Params.repo }}" />
<meta name="go-source" content="{{ index .Params.packages 0 }} {{ .Params.repo }} {{ .Params.repo }}/tree/master{/dir} {{.Params.repo}}/blob/master{/dir}/{file}#L{line}" />
{{ end }}

0 comments on commit 89443d1

Please sign in to comment.