Commit 5de38cd9 authored by Leon Byford's avatar Leon Byford

custom sitemap.xml

parent 4d5dad21
---
---
<?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 %}
{% unless page.url contains "." %}
<url>
<loc>{{site.url}}{{site.baseurl}}{{page.url}}</loc>
</url>
{% endunless %}
{% endfor %}
</urlset>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment