From fda569cb8b0e9436bcb8142e2dca8a32a4b05d5a Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:22:25 +0800 Subject: [PATCH] fix: make head.html formattable --- .prettierignore | 1 - layouts/partials/head.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 694b1bf2..78283304 100644 --- a/.prettierignore +++ b/.prettierignore @@ -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 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ca9e70b3..b71905da 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }}