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:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user