diff options
author | Vincent Batoufflet <vincent@batoufflet.info> | 2014-05-07 08:58:25 +0200 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-05-09 23:11:48 -0400 |
commit | 5df0cf7ecac3240c57fd2d3b3cf3f4eb9c966dc4 (patch) | |
tree | 61226137f8ae2640a10abdb7c3b86c9261adbfe3 /examples | |
parent | 35926dcf3742df915a9d535d7178a363c666e840 (diff) |
Add Sitemap documentation content
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blog/layouts/sitemap.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/blog/layouts/sitemap.xml b/examples/blog/layouts/sitemap.xml new file mode 100644 index 000000000..2cc760811 --- /dev/null +++ b/examples/blog/layouts/sitemap.xml @@ -0,0 +1,10 @@ +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + {{ range .Data.Pages }} + <url> + <loc>{{ .Permalink }}</loc> + <lastmod>{{ safeHtml ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }} + <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + <priority>{{ .Sitemap.Priority }}</priority>{{ end }} + </url> + {{ end }} +</urlset> |