Skip to content

fix(hugo): replace config keys and template vars deprecated in Hugo v0.153–v0.158 - #1143

Merged
haarchri merged 2 commits into
crossplane:masterfrom
haarchri:feautre/bump-depcr
Aug 26, 2026
Merged

fix(hugo): replace config keys and template vars deprecated in Hugo v0.153–v0.158#1143
haarchri merged 2 commits into
crossplane:masterfrom
haarchri:feautre/bump-depcr

Conversation

@haarchri

@haarchri haarchri commented Aug 25, 2026

Copy link
Copy Markdown
Member

Fixes four deprecation warnings emitted by recent Hugo versions:

  • languageCodelocale in config.yaml (deprecated in Hugo v0.158.0)
  • module.mounts.includeFilesfiles for the three content mounts in config.yaml (deprecated in Hugo v0.153.0), same glob patterns
  • .Site.Datahugo.Data in the geekboot theme shortcodes and partials (deprecated in Hugo v0.156.0)
  • site.Language.LanguageCodesite.Language.Locale in the RSS template (deprecated in Hugo v0.158.0)
  • bump hugo
  • update security config for postcss config
  • need to use node22

No content or rendering changes. Verified with a full hugo build at --logLevel warn, which now completes with zero warnings.

Fixes: #1137

@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for crossplane ready!

Name Link
🔨 Latest commit b73dfb9
🔍 Latest deploy log https://app.netlify.com/projects/crossplane/deploys/6a8dc1f6653f2400083fd393
😎 Deploy Preview https://deploy-preview-1143--crossplane.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (🟢 up 15 from production)
Accessibility: 90 (🔴 down 2 from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

…0.153–v0.158

Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
@haarchri
haarchri force-pushed the feautre/bump-depcr branch from cf8ce80 to a031054 Compare August 25, 2026 15:32
@haarchri
haarchri requested a review from jbw976 August 25, 2026 15:34
Signed-off-by: Christopher Haar <christopher.haar@upbound.io>
@haarchri haarchri closed this Aug 25, 2026
@haarchri haarchri reopened this Aug 25, 2026
@haarchri
haarchri merged commit 6946566 into crossplane:master Aug 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hugo server fails local build with deprecated warnings

2 participants