From ad0bcfc9f6d1bd438909f7bbf7e00d1e077e96ea Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 11 Oct 2024 16:53:54 +0800 Subject: [PATCH] fix: correct context on hugomods/cloudflare-analytics/index.html partial --- layouts/partials/hugomods/cloudflare-analytics/index.html | 2 +- .../hugopress/modules/cloudflare-analytics/hooks/head-end.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/hugomods/cloudflare-analytics/index.html b/layouts/partials/hugomods/cloudflare-analytics/index.html index 3250a44..7b3e099 100644 --- a/layouts/partials/hugomods/cloudflare-analytics/index.html +++ b/layouts/partials/hugomods/cloudflare-analytics/index.html @@ -1,3 +1,3 @@ -{{- if default true .Page.Params.analyze }} +{{- if default true .Params.analyze }} {{ partial "hugomods/cloudflare-analytics/assets/js" . }} {{- end }} diff --git a/layouts/partials/hugopress/modules/cloudflare-analytics/hooks/head-end.html b/layouts/partials/hugopress/modules/cloudflare-analytics/hooks/head-end.html index 330da66..4d069c6 100644 --- a/layouts/partials/hugopress/modules/cloudflare-analytics/hooks/head-end.html +++ b/layouts/partials/hugopress/modules/cloudflare-analytics/hooks/head-end.html @@ -1 +1 @@ -{{ partial "hugomods/cloudflare-analytics/index" . .Params.analyze }} +{{ partialCached "hugomods/cloudflare-analytics/index" .Page .Page.Params.analyze }}