mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
c65852d882
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.
21 lines
732 B
HTML
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" . -}}
|