Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Batoufflet <vincent@batoufflet.info>2014-05-07 10:58:25 +0400
committerspf13 <steve.francia@gmail.com>2014-05-10 07:11:48 +0400
commit5df0cf7ecac3240c57fd2d3b3cf3f4eb9c966dc4 (patch)
tree61226137f8ae2640a10abdb7c3b86c9261adbfe3 /examples
parent35926dcf3742df915a9d535d7178a363c666e840 (diff)
Add Sitemap documentation content
Diffstat (limited to 'examples')
-rw-r--r--examples/blog/layouts/sitemap.xml10
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>