From 73cbdae59581dcc488fbb980f44b0db510644e13 Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Tue, 6 May 2025 23:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat:=20support=20extend-head=20acc?= =?UTF-8?q?ess=20.Page=20(#1781)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use extend-head-uncached.html for downward compatibility --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 46f47769..b38b8089 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }} {{/* Firebase */}} {{ with $.Site.Params.firebase }}