Files
FixIt/layouts/_partials/init/index.html
T
Cell c65852d882 fix(layouts): replace deprecated .Site.BuildDrafts with HUGO_PARAMS_MENU_DRAFT env var
Use getenv "HUGO_PARAMS_MENU_DRAFT" to control draft menu item visibility,
replacing the deprecated .Site.BuildDrafts (Hugo v0.156.0). (#702)

Also refactors menu range loops to use `continue` for reduced nesting.
2026-08-19 12:30:50 +08:00

21 lines
732 B
HTML

{{- /*
Theme initialization entry point partial.
Sets the theme version and orchestrates all init sub-partials:
environment detection, version checking, deprecated param detection,
Pagefind index check, encryption warnings, global setup, and browser compatibility.
Called from: layouts/baseof.html.
*/ -}}
{{- hugo.Store.Set "version" "v1.0.0-alpha-mszlegf7" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
{{- partial "init/detection-version.html" . -}}
{{- partial "init/detection-deprecated.html" . -}}
{{- partial "init/detection-pagefind.html" . -}}
{{- partial "init/detection-encryption.html" . -}}
{{- partial "init/global.html" . -}}
{{- partial "init/compatibility.html" . -}}