Added a sitemap.xml

This commit is contained in:
Felipe M 2016-12-19 20:42:38 +01:00
parent 8d4d5a85f1
commit 4dfbe0a50a
3 changed files with 11 additions and 1 deletions

7
templates/sitemap.xml Normal file
View file

@ -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) }}
{%- endfor %}
</urlset>