Skip to content

fix: replace deprecated .Site.AllPages usage#928

Open
abhijeetnardele24-hash wants to merge 2 commits intolayer5io:masterfrom
abhijeetnardele24-hash:bug/abhijeetnardele24-hash/925
Open

fix: replace deprecated .Site.AllPages usage#928
abhijeetnardele24-hash wants to merge 2 commits intolayer5io:masterfrom
abhijeetnardele24-hash:bug/abhijeetnardele24-hash/925

Conversation

@abhijeetnardele24-hash
Copy link
Copy Markdown

Summary

Testing

  • targeted template update only

Closes #925

Signed-off-by: abhijeet nardele <234410808+abhijeetnardele24-hash@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for bejewelled-pegasus-b0ce81 ready!

Name Link
🔨 Latest commit c869866
🔍 Latest deploy log https://app.netlify.com/projects/bejewelled-pegasus-b0ce81/deploys/69cc3355b0cf3a0008696f0a
😎 Deploy Preview https://deploy-preview-928--bejewelled-pegasus-b0ce81.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.

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Site.AllPages }}
{{ range site.AllPages }}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhijeetnardele24-hash I think this is not correct. Please read docs of hugo.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait let me check i was in hurry

Signed-off-by: abhijeet nardele <234410808+abhijeetnardele24-hash@users.noreply.github.com>
@abhijeetnardele24-hash
Copy link
Copy Markdown
Author

Updated the PR to use the Hugo-documented replacement for Site.AllPages: iterating hugo.Sites and then .Pages. Please take another look when you get a moment.

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