Add site map

This commit is contained in:
2018-06-30 09:31:26 +03:00
parent 2fe982dc76
commit 54e7e13876
6 changed files with 95 additions and 4 deletions

View File

@ -1,4 +1,6 @@
---
permalink: none
sitemap:
_exclude: yes
---
User-agent: *

28
source/sitemap.xml Normal file
View File

@ -0,0 +1,28 @@
---
permalink: none
use:
- sitemap
sitemap:
_exclude: yes
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for url in data.sitemap %}
<url>
{# Last slash for pretty url #}
<loc>{{ site.url }}{{ url.loc != '/.' ? (url.loc ~ '/') : '' }}</loc>
<lastmod>{{ url.lastmod }}</lastmod>
{% if url.changefreq %}
<changefreq>{{ url.changefreq }}</changefreq>
{% endif %}
{% if url.priority %}
<priority>{{ url.priority }}</priority>
{% endif %}
</url>
{% endfor %}
</urlset>