From 5ca43e14d33728ce16760f0b1f44df6a3494d944 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Wed, 8 Apr 2026 10:37:25 +0200 Subject: [PATCH] Update to fix deprecated .Site.Languages in Hugo v0.156.0 (#149) * Fix for the fact that .Site.Languages was deprecated in Hugo v0.156.0. This also makes the min version for the Zen them v0.156.0. * More changes to languages, minimum version is now v0.158.0. * Updated version when min Hugo version changes. --- README.md | 3 ++- hugo.yaml | 2 +- layouts/_partials/head/meta.html | 2 +- layouts/_partials/language-selector.html | 8 ++++---- layouts/baseof.html | 2 +- layouts/list.json.json | 2 +- layouts/micro/rss.xml | 2 +- layouts/podcast/rss.xml | 2 +- layouts/rss.xml | 2 +- theme.toml | 2 +- 10 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2312e4a..d8a079f 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Quickstart a new site with the Zen theme by using the [Zen demo repo as a templa ## Minimum Hugo version -Hugo version 0.146.0 or higher is required. Since v6 the extended version is no longer needed as it was with v5 and earlier. +Hugo version 0.158.0 or higher is required. Since v6 the extended version is no longer needed as it was with v5 and earlier. ## Installation @@ -152,6 +152,7 @@ hugo server --themesDir ../.. ## Version 6.x 2026-03-10 +* Minimum Hugo version is now v0.158.0 (since 6.3). * Converted from sass to modern vanilla css with nesting and layers. Please check [CSS Nesting | Can I use](https://caniuse.com/css-nesting) to see if you are comfortable with css nesting support in browsers before updating to v6. * No changes to styles or templates so sites should look identical, if the browser support nesting. diff --git a/hugo.yaml b/hugo.yaml index 007a857..61c9b36 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,4 +1,4 @@ module: hugoVersion: extended: false - min: "0.146.0" + min: "0.158.0" diff --git a/layouts/_partials/head/meta.html b/layouts/_partials/head/meta.html index 728fc06..8cfcd31 100644 --- a/layouts/_partials/head/meta.html +++ b/layouts/_partials/head/meta.html @@ -22,6 +22,6 @@ {{ if .IsTranslated -}} {{ range .Translations -}} - + {{ end -}} {{ end -}} diff --git a/layouts/_partials/language-selector.html b/layouts/_partials/language-selector.html index f91e872..6378537 100644 --- a/layouts/_partials/language-selector.html +++ b/layouts/_partials/language-selector.html @@ -6,12 +6,12 @@