Files
website/netlify.toml
T
Bjørn Erik Pedersen 886514b9e3 netlify: Update to Hugo 0.47.1 (#9910)
The relevant fix for kubernetes.io is the "Page last modified on" line (Git revision info), which in this version now works correctly across languages.
2018-08-21 09:52:13 -07:00

27 lines
872 B
TOML

[build]
# This default build command adds the robots noindex directive to the site headers.
# It is turned off for only for the production site by using [context.master] below
# DO NOT REMOVE THIS (contact @chenopis or @sig-docs-maintainers)
publish = "public"
command = "hugo --enableGitInfo && cp netlify_noindex_headers.txt public/_headers"
[build.environment]
HUGO_VERSION = "0.47.1"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
[context.master]
# This context is triggered by the `master` branch and allows search indexing
# DO NOT REMOVE THIS (contact @chenopis or @sig-docs-maintainers)
publish = "public"
command = "hugo"