From d59b91c4bd4c1987dfec5ee1c05f293b7d904d44 Mon Sep 17 00:00:00 2001 From: steam Date: Fri, 6 Nov 2026 10:32:52 +0100 Subject: [PATCH] Fix build warnings: update PaperMod, drop the dead UA property Hugo 0.158+ deprecated .Language.LanguageDirection and .Language.LanguageCode. Both were used only by the theme (baseof.html, rss.xml, opengraph.html) and are already fixed upstream, so bump PaperMod v8.0-139 -> v8.0-152 instead of patching the submodule. Other changes in that range are theme improvements (focus handling for in-page anchors, throttled scroll handlers, ISO date titles); no site behaviour regressions in the generated HTML. Universal Analytics (UA-179789773-1) stopped collecting data in 2023 and made Hugo warn on every build. Analytics is now disabled with a comment showing how to enable GA4; the dead gtag.js snippet is no longer shipped to visitors. make check: 0 warnings, 0 errors. --- AGENTS.md | 12 ++++++------ config.yml | 7 ++++--- themes/PaperMod | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e110013..c089ed1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -82,15 +82,15 @@ Datenschutz/Impressum links now come from `params.footer.text` in `config.yml`. `.well-known/` is excluded for ACME challenges. - Deploy still authenticates with a password via `sshpass`. Moving to an SSH key is a known follow-up. -- Theme deprecation warnings are upstream PaperMod noise - (`.Language.LanguageDirection`, `.Language.LanguageCode`). Do not try to fix - them in the submodule; wait for `make theme-update`. There are no other - acceptable Hugo warnings. +- The build must be warning-free. Deprecations coming from the theme are fixed + by `make theme-update`, never by editing the submodule; deprecations coming + from `config.yml` (e.g. a retired analytics ID) are fixed in the config. ## Known issues / backlog -- `googleAnalytics` in `config.yml` is a dead Universal Analytics ID; a GA4 - `G-…` property is needed before analytics works again. +- Analytics is deliberately disabled: the Universal Analytics property is dead + and no GA4 measurement ID exists yet. Add `googleAnalytics: G-XXXXXXXXXX` in + `config.yml` if tracking is wanted (cookieless consent implications aside). - `params.images` (Open Graph / Twitter cards) points at 32–60 px icons. Use a 1200×630 image so shared links render properly. - Two posts (`a-letter-to-my-younger-self`, `appreciation`) are drafts whose diff --git a/config.yml b/config.yml index 73bf9ba..12c5f87 100644 --- a/config.yml +++ b/config.yml @@ -10,9 +10,10 @@ buildFuture: false buildExpired: false enableEmoji: true -# TODO(analytics): Universal Analytics (UA-*) stopped collecting data on 2023-07-01. -# Create a GA4 property and replace this with its G-XXXXXXXXXX measurement ID (or drop the line). -googleAnalytics: UA-179789773-1 +# Analytics is off: the old Universal Analytics property (UA-179789773-1) stopped +# collecting data on 2023-07-01 and Hugo warns on every build. To enable GA4, +# create a property and uncomment the line below with its measurement ID: +# googleAnalytics: G-XXXXXXXXXX minify: disableXML: true diff --git a/themes/PaperMod b/themes/PaperMod index d376885..1181196 160000 --- a/themes/PaperMod +++ b/themes/PaperMod @@ -1 +1 @@ -Subproject commit d3768854d00ad003b0a8dbdba254ce9224377a01 +Subproject commit 118119693d8b5ac211b939775678310973bcb232