Fix/hugo v0.158.0 deprecations (#1884)

* fix(layouts): use non-deprecated .Language methods

Hugo v0.158.0 deprecated these in favour of new names:
- .Language.LanguageDirection -> .Language.Direction
- .Language.LanguageCode -> .Language.Locale
- .Language.LanguageName -> .Language.Label

Fixes the deprecation warnings shown on every build. Requires Hugo
v0.158.0 or later.

Closes #1856

* chore(theme): bump minimum hugo version to v0.158.0

* fix(schema_json): replace deprecated .Language.Lang with .Language.Name

ref: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869
This commit is contained in:
Aditya Telange authored and GitHub committed 2026-10-18 19:27:30 +05:30
1 parent d3768854d0
commit a5d59c7d44
10 files changed
+20 -20

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ on:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.146.0"
default: "0.158.0"
defaults:
run:
@@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
env:
# min_version from theme.toml
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }}
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.158.0' }}
steps:
- name: Install Hugo CLI
run: |