diff --git a/hugo.toml b/hugo.toml index 944e1aec..8665c530 100644 --- a/hugo.toml +++ b/hugo.toml @@ -310,9 +310,10 @@ privacyEnhanced = true # See: https://gohugo.io/configuration/media-types/ # ------------------------------------------------------------------------------------- -[mediaTypes] +# [mediaTypes] + # [mediaTypes."application/feed+json"] -# suffixes = ["json"] +# suffixes = [ "json" ] # ------------------------------------------------------------------------------------- # Output Format Configuration @@ -380,6 +381,7 @@ permalinkable = true [outputFormats.manifest] baseName = "site" mediaType = "application/manifest+json" +rel = "manifest" isPlainText = true isHTML = false diff --git a/layouts/_partials/base/head/index.html b/layouts/_partials/base/head/index.html index 79c5645f..04ed514d 100644 --- a/layouts/_partials/base/head/index.html +++ b/layouts/_partials/base/head/index.html @@ -85,9 +85,6 @@ {{- with .Site.Params.app.mask_color -}} {{- end -}} - {{- with .OutputFormats.Get "manifest" -}} - {{- if eq $.Site.Params.app.pwa true -}}{{- end -}} - {{- end -}} {{- end -}} {{- /* Canonical and pagination links */ -}} @@ -99,14 +96,12 @@ {{- end -}} -{{- /* Alternative output formats (Atom, RSS, etc.) */ -}} +{{- /* Alternative output formats (Atom, RSS, manifest etc.) */ -}} {{- range .AlternativeOutputFormats -}} - {{- printf `` .Rel .MediaType.Type .Permalink $title | safeHTML -}} -{{- end -}} - -{{- /* JSON Feed support */ -}} -{{- with .OutputFormats.Get "jsonfeed" -}} - + {{- if (eq .Name "manifest") | and (not $.Site.Params.app.pwa) -}} + {{- continue -}} + {{- end -}} + {{- end -}} {{- /* CSS: base + page-specific */ -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 54ba1d21..6bd5f953 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v1.0.0-mqorjc8q" -}} +{{- hugo.Store.Set "version" "v1.0.0-mqt0ysyp" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}