Skip to content

Fix deprecation warning#952

Open
deining wants to merge 1 commit intoimfing:mainfrom
deining:fix-deprecation
Open

Fix deprecation warning#952
deining wants to merge 1 commit intoimfing:mainfrom
deining:fix-deprecation

Conversation

@deining
Copy link
Contributor

@deining deining commented Feb 28, 2026

When previewing the theme, deprecation warnings are shown with latest released hugo version 0.157.0:

INFO  deprecated: .Site.Data was deprecated in Hugo v0.156.0 and will be removed in a future release.
Use hugo.Data instead.
INFO  deprecated: .Site.Sites and .Page.Sites was deprecated in Hugo v0.156.0 and will be removed in a future release.
Use hugo.Sites instead.

This PR fixes that issue.

Note:: This PR raises the minimum required hugo version to 0.156.0.

@netlify
Copy link

netlify bot commented Feb 28, 2026

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 55a6195
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/69a35d666d8d120008dcc556
😎 Deploy Preview https://deploy-preview-952--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@imfing
Copy link
Owner

imfing commented Mar 1, 2026

Hey, thanks for the pull request! Just wanted to mention that this would mean everyone would need to upgrade to the latest version, which is a pretty big change.

@deining
Copy link
Contributor Author

deining commented Mar 1, 2026

Hey, thanks for the pull request!

You are welcome!

Just wanted to mention that this would mean everyone would need to upgrade to the latest version

You are right. I just added this to the PR description above.

which is a pretty big change.

Feel free to merge this PR whenevr you think it's appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants