Make only live website indexable

This change updates how we run Hugo AND changes the logic for checking
whether a page should be indexable (copied with a backport from upstream
Docsy).
This commit is contained in:
Tim Bannister
2021-12-07 14:16:55 +00:00
parent 37e625e28c
commit 20e4c39f2e
4 changed files with 24 additions and 28 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- if eq (getenv "HUGO_ENV") "production" }}
{{- if eq hugo.Environment "production" }}
{{- $cssFilesFromConfig := site.Params.pushAssets.css -}}
{{- $jsFilesFromConfig := site.Params.pushAssets.js -}}
{{- $pages := site.RegularPages -}}