fix: update manifest output condition to include server and non-production checks

This commit is contained in:
Cell
2026-08-07 20:47:40 +08:00
parent 8d7703a418
commit 7bdd0c5869
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -97,7 +97,13 @@
{{- /* Alternative output formats (Atom, RSS, manifest etc.) */ -}}
{{- range .AlternativeOutputFormats -}}
{{- if (eq .Name "manifest") | and (not $.Site.Params.app.pwa) -}}
{{- if
(eq .Name "manifest") | and (
hugo.IsServer | or
(not hugo.IsProduction) | or
(not $.Site.Params.app.pwa)
)
-}}
{{- continue -}}
{{- end -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
+1 -1
View File
@@ -8,7 +8,7 @@
Called from: layouts/baseof.html.
*/ -}}
{{- hugo.Store.Set "version" "v1.0.0-alpha" -}}
{{- hugo.Store.Set "version" "v1.0.0-alpha-msixwsck" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}