Added a sitemap.xml

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

View File

@ -15,6 +15,6 @@ And of course, this site "source code" [is publicly accessible on Github too](ht
---
_template: open-source.html
---
_discoverable: no
_discoverable: yes
---
title: Made with Open Source

View File

@ -0,0 +1,3 @@
_template: sitemap.xml
---
_model: none

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>