We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e43c12 commit b1f9ba6Copy full SHA for b1f9ba6
portfolio/layouts/_default/sitemap.xml
@@ -0,0 +1,12 @@
1
+{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
2
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
4
+{{ range .Data.Pages }}
5
+ <url>
6
+ <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
7
+ <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
8
+ <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
9
+ <priority>{{ .Sitemap.Priority }}</priority>{{ end }}
10
+ </url>
11
+{{ end }}
12
+</urlset>
0 commit comments