mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: update manifest output condition to include server and non-production checks
This commit is contained in:
@@ -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 }}">
|
||||
|
||||
@@ -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" . -}}
|
||||
|
||||
Reference in New Issue
Block a user