1
0
Fork 0

Add sitemap.xml

This commit is contained in:
Daniel Kempkens 2015-02-07 20:04:04 +01:00
parent d3c620ec3b
commit 6449902da2
2 changed files with 19 additions and 0 deletions

View file

@ -3,3 +3,4 @@ layout: null
---
User-agent: *
Allow: /
Sitemap: {{ "/sitemap.xml" | prepend: site.url }}

18
sitemap.xml Normal file
View file

@ -0,0 +1,18 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{ site.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
{% for page in site.pages %}
{% if page.title != null and page.url != '/404.html' %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
</url>
{% endif %}
{% endfor %}
</urlset>