Merge pull request #2116 from ZhenShuo2021/feat/extend-head

 Feat: support extend-head access .Page (#1781)
This commit is contained in:
Nuno Coração
2025-05-27 00:24:57 +01:00
committed by GitHub

View File

@@ -136,6 +136,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 }}