From 8b179756d88efcff4ea5064794234c04cee5cd03 Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 11 Oct 2024 22:06:10 +0800 Subject: [PATCH] feat: add layouts/partials/hugomods/umami/index.html partial --- layouts/partials/hugomods/umami/index.html | 3 +++ layouts/partials/hugopress/modules/umami/hooks/head-end.html | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/hugomods/umami/index.html diff --git a/layouts/partials/hugomods/umami/index.html b/layouts/partials/hugomods/umami/index.html new file mode 100644 index 0000000..b3ed130 --- /dev/null +++ b/layouts/partials/hugomods/umami/index.html @@ -0,0 +1,3 @@ +{{- if default true .Params.analyze }} + {{ partialCached "hugomods/umami/assets/js" . }} +{{- end }} diff --git a/layouts/partials/hugopress/modules/umami/hooks/head-end.html b/layouts/partials/hugopress/modules/umami/hooks/head-end.html index 4496efc..2bfd95f 100644 --- a/layouts/partials/hugopress/modules/umami/hooks/head-end.html +++ b/layouts/partials/hugopress/modules/umami/hooks/head-end.html @@ -1,3 +1 @@ -{{- if default true .Page.Params.analyze }} - {{ partialCached "hugomods/umami/assets/js" . }} -{{- end }} +{{ partialCached "hugomods/umami/index" .Page .Page.Params.analyze }}