sitemap.xml 695 Bytes
Newer Older
Leon Byford's avatar
Leon Byford committed
1 2 3 4 5 6 7 8 9 10 11 12 13
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
{% if post.date <= site.time %}
<url>
<loc>{{site.url}}{{site.baseurl}}{{post.url}}</loc>
<lastmod>{{post.date | date: "%F"}}</lastmod>
</url>
{% endif %}
{% endfor %}
{% for page in site.pages %}
14
{% unless page.url contains "." or page.url == "/tag" or page.sitemap == false %}
Leon Byford's avatar
Leon Byford committed
15 16 17 18 19 20
<url>
<loc>{{site.url}}{{site.baseurl}}{{page.url}}</loc>
</url>
{% endunless %}
{% endfor %}
</urlset>