Fix build warnings: update PaperMod, drop the dead UA property
Build and deploy the poweronoff.click hugo / build (push) Successful in 42s

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.
This commit is contained in:
morpheus committed 2026-11-06 10:32:52 +01:00
1 parent c378349cff
commit d59b91c4bd
3 files changed
+11 -10

No files matched your search

+6 -6
View File
@@ -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
+4 -3
View File
@@ -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