From 7bdd0c58695a0780c136ee051038a2f30b85a13f Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 7 Aug 2026 20:47:40 +0800 Subject: [PATCH] fix: update manifest output condition to include server and non-production checks --- layouts/_partials/base/head/index.html | 8 +++++++- layouts/_partials/init/index.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/_partials/base/head/index.html b/layouts/_partials/base/head/index.html index ae724fa9..fad24ec1 100644 --- a/layouts/_partials/base/head/index.html +++ b/layouts/_partials/base/head/index.html @@ -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 -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 52ef7bbd..dd317ecd 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -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" . -}}