-
Notifications
You must be signed in to change notification settings - Fork 166
fix: replace deprecated .Site.AllPages usage #928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | ||
| xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
| {{ range .Site.AllPages }} | ||
| {{ range hugo.Sites }} | ||
| {{ range .Pages }} | ||
|
Comment on lines
+4
to
+5
|
||
| {{- if and (not .Params.sitemap_exclude) (not .Draft) }} | ||
| <url> | ||
| <loc>{{ .Permalink }}</loc> | ||
|
|
@@ -17,4 +18,5 @@ | |
| </url> | ||
| {{- end }} | ||
| {{ end }} | ||
| {{ end }} | ||
| </urlset> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description says this replaces
.Site.AllPageswithsite.AllPages, but the template now loops overhugo.Sitesand.Pages. Please align the implementation with the stated change (or update the PR description) so reviewers know whether sitemap behavior is intended to change.