From bf3ccc6b9b0d7219fbe445977b1f01f7ee127a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 18 May 2026 18:59:20 +0200 Subject: [PATCH] Add Umami analytics in production Script injected via hugo.IsProduction guard so it's absent during hugo server dev mode. Src and website-id stored in hugo.toml params. Co-Authored-By: Claude Sonnet 4.6 --- hugo.toml | 2 ++ layouts/partials/head.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hugo.toml b/hugo.toml index ff493d0..34b271b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -27,6 +27,8 @@ issueName = "Fabric, Light & Gesture" issueSeason = "Spring MMXXVI" issueBlurb = "The inaugural plates — one hundred photographs gathered across ateliers, streets, and quiet hotel corridors." siteURL = "https://roux.pivoine.art" +umamiSrc = "https://umami.pivoine.art/script.js" +umamiId = "df675ca7-f82a-463b-89aa-f67c1f56ed68" [markup.goldmark.renderer] unsafe = true diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a0e9dfa..825b474 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -27,4 +27,7 @@ +{{- if hugo.IsProduction }} + +{{- end }} {{ with .OutputFormats.Get "RSS" }}{{ end }}