diff options
Diffstat (limited to 'templates/sitemap.xml')
| -rw-r--r-- | templates/sitemap.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..04d2a42 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + {%- for page in [site.root] if page != this recursive %} + <url><loc>{{ page|url(external=true) }}</loc></url> + {{- loop(page.children|sort(attribute='path')) }} + {%- endfor %} +</urlset> |
