Add Git info to per-page template (#9309)

* Add per-page Git commit info

* Try moving the buttons down below the page TOC

* Add page history to page footer
This commit is contained in:
Misty Linville
2018-07-02 16:17:19 -07:00
committed by k8s-ci-robot
parent 48897cc47d
commit 1b914f4ac7
4 changed files with 47 additions and 25 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
[build]
# This default build command adds the robots noindex directive to the site headers
publish = "public"
command = "hugo && cp netlify_noindex_headers.txt public/_headers"
command = "hugo --enableGitInfo && cp netlify_noindex_headers.txt public/_headers"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
@@ -10,13 +10,13 @@ HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "hugo -b $DEPLOY_PRIME_URL"
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.40.3"
[context.branch-deploy]
command = "hugo -b $DEPLOY_PRIME_URL"
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.40.3"