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:
committed by
k8s-ci-robot
parent
48897cc47d
commit
1b914f4ac7
+3
-3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user