diff options
Diffstat (limited to 'templates/sitemap.xml.erb')
| -rw-r--r-- | templates/sitemap.xml.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/sitemap.xml.erb b/templates/sitemap.xml.erb new file mode 100644 index 0000000..304b1c6 --- /dev/null +++ b/templates/sitemap.xml.erb @@ -0,0 +1,11 @@ +<% _base_url = base_url %> +<% _pages = pages %> +<?xml version="1.0" encoding="utf-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" > + <% for page in _pages %> + <url> + <loc><%= _base_url %><%= page.href %></loc> + <lastmod><%= page.updated_on %></lastmod> + </url> + <% end %> +</urlset> |
