From c0a11a51252d58d68ddb1700c05b42263aa91d4f Mon Sep 17 00:00:00 2001 From: Demian Date: Sat, 6 Jun 2026 19:42:21 +0200 Subject: [PATCH] Fix Umami script URL for self-hosted instance --- config.toml | 1 + layouts/partials/head.html | 97 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 layouts/partials/head.html diff --git a/config.toml b/config.toml index 82bac7d..917ef39 100644 --- a/config.toml +++ b/config.toml @@ -16,6 +16,7 @@ url = "https://pyte.dev/assets/patrick.png" [params.umami] websiteId = "237a262a-96ca-494f-905a-abecfb6b1cc7" + dataHostUrl = "https://umami.pyte.dev" [params.social] github = "https://github.com/pyte1" diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..be7d7c6 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,97 @@ + + + + + +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} | {{ site.Title }}{{ end }} + + +{{ if .Params.tags }} + +{{ end }} + +{{ if .Params.author }} + +{{ else if site.Params.author }} + +{{ end }} + + + + +{{ partial "head/robots.html" . }} +{{ partial "head/opengraph.html" . }} +{{ partial "head/json-ld.html" . }} + + + + + + + +{{ partial "head/css.html" . }} + + + + + + + + + + + + + + + + + +{{ range .AlternativeOutputFormats }} + +{{ end }} + +{{ with .Site.Home }} + {{ with .OutputFormats.Get "RSS" }} + + {{ end }} +{{ end }} + +{{ if site.Params.umami.websiteId }} + {{ $umamiHost := site.Params.umami.dataHostUrl | default "https://cloud.umami.is" }} + +{{ end }}