fix: make head.html formattable

This commit is contained in:
ZhenShuo Leo
2025-06-18 19:22:25 +08:00
parent e9edfa8f1c
commit fda569cb8b
2 changed files with 1 additions and 2 deletions

View File

@@ -33,7 +33,6 @@ layouts/partials/article-link/card.html
layouts/partials/article-link/simple.html
layouts/partials/header/basic.html
layouts/partials/hero/background.html
layouts/partials/head.html
layouts/shortcodes/screenshot.html
layouts/shortcodes/figure.html

View File

@@ -149,7 +149,7 @@
{{ 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 }} */}}
{{/* Uncached extend head - Example: https://gohugo.io/methods/page/hasshortcode/ */}}
{{ if templates.Exists "partials/extend-head-uncached.html" }}
{{ partial "extend-head-uncached.html" . }}
{{ end }}