From 30d18c0c2e93c5cf1b98407b92ed43701ce32c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Sat, 21 Nov 2026 11:17:43 +0100 Subject: [PATCH] Bump Hugo from 0.161.1 to 0.170.1 - mise.toml, netlify.toml, README.md, CLAUDE.md: pin Hugo 0.170.1 - hugo.toml: re-add tailwindcss to security.exec.allow; Hugo 0.165 removed it from the default list (gohugoio/hugo#15178) and the Tailwind CSS pipe fails with "access denied" without it - layouts: replace deprecated .Site.Data with hugo.Data (deprecated since Hugo 0.156) --- CLAUDE.md | 8 ++++---- README.md | 4 ++-- hugo.toml | 4 ++++ layouts/partials/about.html | 2 +- layouts/partials/sponsors-home.html | 2 +- layouts/sponsors/list.html | 2 +- mise.toml | 2 +- netlify.toml | 2 +- 8 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 47e06e5..fbf9f93 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -30,7 +30,7 @@ npm run build # Alias ## Tool Versions Managed via `mise.toml`: -- Hugo: 0.161.1 +- Hugo: 0.170.1 - Python: 3.13.11 ## Architecture @@ -74,7 +74,7 @@ Conference content is stored in **YAML data files** (`data/*.yml`), not Markdown **`data/dublin.yml`** - "Discover Dublin" section: intro text, gallery images, highlights (attractions), transport options - Structure: `intro`, `gallery[]`, `highlights[]`, `transport[]` -- Accessed: `.Site.Data.dublin` +- Accessed: `hugo.Data.dublin` **Why data files?** Allows non-technical team members to update content without touching templates. Enables programmatic manipulation and structured data generation. @@ -338,7 +338,7 @@ The Bree brand font (Adobe Fonts / Typekit) stopped loading in production becaus - `hugo.toml` — All site configuration and parameters - `mise.toml` — Tool version pinning (Hugo, Python) -- `netlify.toml` — Netlify build config (Hugo 0.161.1, Node 22, TZ Europe/Dublin) +- `netlify.toml` — Netlify build config (Hugo 0.170.1, Node 22, TZ Europe/Dublin) - `assets/css/main.css` — Design system tokens and custom CSS - `assets/img/hero.jpg` — Homepage hero image - `layouts/partials/head.html` — Meta tags, OG tags, favicon, structured data inclusion @@ -354,7 +354,7 @@ The Bree brand font (Adobe Fonts / Typekit) stopped loading in production becaus Deployed via **Netlify** (not GitHub Pages). Configuration in `netlify.toml`: - Build command: `npm install && hugo --minify` - Publish dir: `public/` -- Hugo version: 0.161.1 / Node: 22 / TZ: Europe/Dublin +- Hugo version: 0.170.1 / Node: 22 / TZ: Europe/Dublin - Production env: `HUGO_ENV=production` - Footer displays build date and commit SHA on Netlify deployments diff --git a/README.md b/README.md index ea09ab2..02ade89 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Conference website for PyCon Ireland 2026, 21 November in Dublin's city centre. ## Tech Stack -- **[Hugo](https://gohugo.io/) v0.161.1** (extended) — static site generator +- **[Hugo](https://gohugo.io/) v0.170.1** (extended) — static site generator - **[Tailwind CSS](https://tailwindcss.com/) v4** — via Hugo's native `css.TailwindCSS` pipe (no PostCSS or external build tools needed) - **Inter** — Google Fonts sans-serif typeface - **Vanilla JS** — mobile menu toggle only, no frameworks @@ -13,7 +13,7 @@ Hugo processes Tailwind CSS natively through its asset pipeline. The `hugo_stats ## Prerequisites -- [Hugo Extended](https://gohugo.io/installation/) >= 0.161.1 +- [Hugo Extended](https://gohugo.io/installation/) >= 0.170.1 - [Node.js](https://nodejs.org/) >= 20 If you use [mise](https://mise.jdx.dev/), Hugo is configured in `mise.toml`. diff --git a/hugo.toml b/hugo.toml index 00cb90c..8534238 100644 --- a/hugo.toml +++ b/hugo.toml @@ -20,6 +20,10 @@ enableGitInfo = true target = "css" [security] + # Hugo >= 0.165 no longer allows tailwindcss by default (gohugoio/hugo#15178). + # Re-add it to the default list; we own the templates that drive it. + [security.exec] + allow = ['^(dart-)?sass$', '^go$', '^git$', '^node$', '^postcss$', '^tailwindcss$'] [security.funcs] getenv = ['^HUGO_', '^CI$', '^COMMIT_REF$', '^DEPLOY_ID$'] diff --git a/layouts/partials/about.html b/layouts/partials/about.html index e3e151d..fa66c3d 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -8,7 +8,7 @@

What is PyCon
- {{ range $i, $item := where .Site.Data.site.about "disabled" "!=" true }} + {{ range $i, $item := where hugo.Data.site.about "disabled" "!=" true }}
{{ if $item.image }}
diff --git a/layouts/partials/sponsors-home.html b/layouts/partials/sponsors-home.html index c25355b..b0a661f 100644 --- a/layouts/partials/sponsors-home.html +++ b/layouts/partials/sponsors-home.html @@ -8,7 +8,7 @@

Our Sponsors {{/* Show top two tiers on homepage */}} - {{ range first 2 .Site.Data.sponsors.tiers }} + {{ range first 2 hugo.Data.sponsors.tiers }}

{{ .name }} Sponsors

diff --git a/layouts/sponsors/list.html b/layouts/sponsors/list.html index 9c0130f..058a8db 100644 --- a/layouts/sponsors/list.html +++ b/layouts/sponsors/list.html @@ -13,7 +13,7 @@

{{ .Title {{/* Sponsor tiers */}}
- {{ range .Site.Data.sponsors.tiers }} + {{ range hugo.Data.sponsors.tiers }} {{ if .sponsors }}

diff --git a/mise.toml b/mise.toml index c14304d..741e733 100644 --- a/mise.toml +++ b/mise.toml @@ -1,5 +1,5 @@ [tools] -hugo = "0.161.1" +hugo = "0.170.1" python = "3.13.11" [env] diff --git a/netlify.toml b/netlify.toml index ba44f50..e4de614 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.161.1" + HUGO_VERSION = "0.170.1" NODE_VERSION = "22" TZ = "Europe/Dublin"