From 25053653e43c3dc46e626daca3a9bf6ef471366b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=E5=AE=B6=E5=8D=95=E6=8E=A8=E4=BA=BA?= Date: Mon, 29 Jul 2024 08:38:28 +0800 Subject: [PATCH] Update header.html and add support for Umami - Updated header.html with necessary changes. - Added support for Umami along with relevant configurable options. - Included a new umami.html file for tracking. --- layouts/partials/head.html | 4 ++++ layouts/partials/header.html | 6 +++--- layouts/partials/umami.html | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/umami.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bf00a74..8f098d1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,3 +23,7 @@ {{ if hugo.IsProduction }} {{ template "_internal/google_analytics.html" . }} {{ end }} + +{{ if .Site.Params.umami.enable }} + {{ partial "umami.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8933883..b96fd83 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,8 +12,8 @@ {{ with site.Params.menu }} {{ range . }}

- - /{{.name }} + + /{{ .name }}

{{ end }} @@ -22,4 +22,4 @@ {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/umami.html b/layouts/partials/umami.html new file mode 100644 index 0000000..1ef689b --- /dev/null +++ b/layouts/partials/umami.html @@ -0,0 +1,6 @@ +