Skip to content

Commit

Permalink
Merge pull request #695 from carvel-dev/vanity-urls
Browse files Browse the repository at this point in the history
Add vanity URL support for carvel golang packages
  • Loading branch information
joaopapereira authored Oct 17, 2023
2 parents a836f43 + 89443d1 commit 43c7ddd
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 4 deletions.
4 changes: 4 additions & 0 deletions site/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,7 @@ markup:
tabWidth: 4
permalinks:
tags: /blog/tags/:slug
minify:
tdewolff:
html:
keepQuotes: true
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
8 changes: 4 additions & 4 deletions site/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ publish = "public"
command = "hugo --gc --minify"

[context.production.environment]
HUGO_VERSION = "0.78.0"
HUGO_VERSION = "0.119.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.78.0"
HUGO_VERSION = "0.119.0"
HUGO_ENV = "production"

[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.78.0"
HUGO_VERSION = "0.119.0"

[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.78.0"
HUGO_VERSION = "0.119.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"
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 43c7ddd

Please sign in to comment.