Skip to content

Commit e0cd2cf

Browse files
committed
Fix sitemap to include all pages using .Site.AllPages
1 parent 412ac58 commit e0cd2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portfolio/layouts/_default/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4-
{{ range .Data.Pages }}
4+
{{ range .Site.AllPages }}
55
<url>
66
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
77
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}

0 commit comments

Comments
 (0)