Skip to content

user guide: fix deprecation warnings when running with latest hugo v0.158.0#2594

Open
deining wants to merge 1 commit into
google:mainfrom
deining:fix-deprecation-0.158.0
Open

user guide: fix deprecation warnings when running with latest hugo v0.158.0#2594
deining wants to merge 1 commit into
google:mainfrom
deining:fix-deprecation-0.158.0

Conversation

@deining
Copy link
Copy Markdown
Contributor

@deining deining commented Mar 17, 2026

This PR fixes #2593.

@Marzal
Copy link
Copy Markdown
Contributor

Marzal commented May 1, 2026

This PR needs to be rebased. It would be good to rebase and merge before the next release.

@chalin
Copy link
Copy Markdown
Collaborator

chalin commented May 2, 2026

I ran out of time for 0.15.0 (which is out now), but upgrading Hugo and addressing deprecation warnings will be address next.

@chalin chalin added this to the 0.16.0 milestone May 2, 2026
@chalin chalin force-pushed the fix-deprecation-0.158.0 branch from 3526d7e to 2afa85f Compare May 2, 2026 11:28
@kduffy9
Copy link
Copy Markdown

kduffy9 commented May 7, 2026

Thanks for this deprecation cleanup. A remaning warning still appears on Hugo >= v0.156:
.Site.AllPages was deprecated in Hugo v0.156.0
It looks tied to the offline search index template (offiline-search-index.json). Could this be updated to the new model (iterate hugo.Sites, then per-site Pages/RegularPages depending intent) so the build is fully warning-free on current Hugo versions?

@deining deining force-pushed the fix-deprecation-0.158.0 branch from 2afa85f to 30dd329 Compare May 7, 2026 18:24
@deining deining force-pushed the fix-deprecation-0.158.0 branch from 30dd329 to 83ddc24 Compare May 7, 2026 18:28
@deining
Copy link
Copy Markdown
Contributor Author

deining commented May 7, 2026

Rebased PR to HEAD of main and fixed one more deprecation in layouts/index.llms.txt.

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.

Deprecation warnings when running example site with latest hugo version 0.158.0

4 participants