From 83ddc246e1e41604281a233ad915de756d73bdb2 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Tue, 17 Mar 2026 20:24:07 +0100 Subject: [PATCH] user guide: fix deprecation warnings when running with latest hugo v0.158.0 --- docsy.dev/config/_default/hugo.yaml | 4 ++-- .../en/docs/get-started/basic-configuration.md | 4 ++-- docsy.dev/content/en/docs/language.md | 12 ++++++------ docsy.dev/package.json | 2 +- layouts/_partials/head-css.html | 2 +- layouts/_partials/navbar-lang-selector.html | 10 +++++----- layouts/baseof.html | 4 ++-- layouts/blog/baseof.html | 4 ++-- layouts/blog/baseof.print.html | 2 +- layouts/docs/baseof.html | 4 ++-- layouts/docs/baseof.print.html | 2 +- layouts/index.llms.txt | 2 +- layouts/swagger/baseof.html | 2 +- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docsy.dev/config/_default/hugo.yaml b/docsy.dev/config/_default/hugo.yaml index 2070b83b0c..c608d7560b 100644 --- a/docsy.dev/config/_default/hugo.yaml +++ b/docsy.dev/config/_default/hugo.yaml @@ -23,11 +23,11 @@ imaging: languages: en: - languageName: English + label: English params: description: Docsy does docs fr: - languageName: Français + label: Français params: description: Docsy, c’est la doc. diff --git a/docsy.dev/content/en/docs/get-started/basic-configuration.md b/docsy.dev/content/en/docs/get-started/basic-configuration.md index 20060e4f9b..777fd9a68b 100644 --- a/docsy.dev/content/en/docs/get-started/basic-configuration.md +++ b/docsy.dev/content/en/docs/get-started/basic-configuration.md @@ -31,7 +31,7 @@ by removing the following lines from `hugo.toml`: ```toml [languages.no] -languageName ="Norsk" +label ="Norsk" contentDir = "content/no" [languages.no.params] title = "Goldydocs" @@ -40,7 +40,7 @@ time_format_default = "02.01.2006" time_format_blog = "02.01.2006" [languages.fa] -languageName ="فارسی" +label ="فارسی" contentDir = "content/fa" [languages.fa.params] title = "اسناد گلدی" diff --git a/docsy.dev/content/en/docs/language.md b/docsy.dev/content/en/docs/language.md index 6f03d655ca..bed574782a 100644 --- a/docsy.dev/content/en/docs/language.md +++ b/docsy.dev/content/en/docs/language.md @@ -29,14 +29,14 @@ defaultContentLanguageInSubdir = false ... [languages] [languages.en] -languageName ="English" +label ="English" # Weight used for sorting. weight = 1 [languages.en.params] title = "Goldydocs" description = "Docsy does docs" [languages.no] -languageName ="Norsk" +label ="Norsk" contentDir = "content/no" [languages.no.params] title = "Goldydocs" @@ -51,13 +51,13 @@ defaultContentLanguageInSubdir: false … languages: en: - languageName: English + label: English weight: 1 # used for sorting params: title: Docsy description: Docsy does docs 'no': - languageName: Norsk + label: Norsk contentDir: content/no params: title: Docsy @@ -72,7 +72,7 @@ languages: "defaultContentLanguageInSubdir": false, "languages": { "en": { - "languageName": "English", + "label": "English", "weight": 1, "params": { "title": "Docsy", @@ -80,7 +80,7 @@ languages: } }, "no": { - "languageName": "Norsk", + "label": "Norsk", "contentDir": "content/no", "params": { "title": "Docsy", diff --git a/docsy.dev/package.json b/docsy.dev/package.json index b2d799a7e1..54643228cf 100644 --- a/docsy.dev/package.json +++ b/docsy.dev/package.json @@ -43,7 +43,7 @@ "afdocs": "^0.9.2", "autoprefixer": "^10.4.27", "cross-env": "^10.1.0", - "hugo-extended": "0.157.0", + "hugo-extended": "0.161.1", "netlify-cli": "^24.0.1", "npm-check-updates": "^19.6.3", "postcss-cli": "^11.0.1", diff --git a/layouts/_partials/head-css.html b/layouts/_partials/head-css.html index ba2a48829c..b2d8a05887 100644 --- a/layouts/_partials/head-css.html +++ b/layouts/_partials/head-css.html @@ -6,7 +6,7 @@ makes it snappier to develop in Chrome, but it may look sub-optimal in other browsers. */ -}} -{{ if eq .Site.Language.LanguageDirection "rtl" -}} +{{ if eq .Site.Language.Direction "rtl" -}} {{ $css = $css | postCSS (dict "use" "autoprefixer rtlcss" "noMap" true) | resources.Copy (replace $scssMain "." ".rtl.") -}} diff --git a/layouts/_partials/navbar-lang-selector.html b/layouts/_partials/navbar-lang-selector.html index d1ec84f26b..7ba9d67e88 100644 --- a/layouts/_partials/navbar-lang-selector.html +++ b/layouts/_partials/navbar-lang-selector.html @@ -3,7 +3,7 @@ \ No newline at end of file + diff --git a/layouts/baseof.html b/layouts/baseof.html index 973872da6f..a1fa37742f 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,6 +1,6 @@ {{ partialCached "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html index d8e3538cae..460f333926 100644 --- a/layouts/blog/baseof.html +++ b/layouts/blog/baseof.html @@ -1,6 +1,6 @@ {{ partial "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/blog/baseof.print.html b/layouts/blog/baseof.print.html index 7efba0402f..030ecace93 100644 --- a/layouts/blog/baseof.print.html +++ b/layouts/blog/baseof.print.html @@ -1,6 +1,6 @@ {{ partial "scripts.html" . }} - \ No newline at end of file + diff --git a/layouts/docs/baseof.print.html b/layouts/docs/baseof.print.html index 0fc9c4faaf..4499749f1e 100644 --- a/layouts/docs/baseof.print.html +++ b/layouts/docs/baseof.print.html @@ -1,6 +1,6 @@