Feat: support extend-head access .Page (#1781)

Use extend-head-uncached.html for downward compatibility
This commit is contained in:
ZhenShuo Leo
2025-05-06 23:55:47 +08:00
parent 1d21656d5e
commit 73cbdae595

View File

@@ -128,6 +128,10 @@
{{ if templates.Exists "partials/extend-head.html" }}
{{ partialCached "extend-head.html" .Site }}
{{ end }}
{{/* Uncached extend head - e.g. {{ with .Page.HasShortcode "gallery" }} do something {{ end }} */}}
{{ if templates.Exists "partials/extend-head-uncached.html" }}
{{ partial "extend-head-uncached.html" . }}
{{ end }}
<meta name="theme-color"/>
{{/* Firebase */}}
{{ with $.Site.Params.firebase }}