Add xml declaration to sitemap
This commit is contained in:
parent
09a4b538b8
commit
e913efcbf8
@ -2,12 +2,15 @@
|
|||||||
permalink: /sitemap.xml
|
permalink: /sitemap.xml
|
||||||
eleventyExcludeFromCollections: true
|
eleventyExcludeFromCollections: true
|
||||||
---
|
---
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for page in collections.all %}
|
{% for page in collections.all %}
|
||||||
|
{% if not page.data.draft %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ page.url | url }}</loc>
|
<loc>{{ site.url }}{{ page.url | url }}</loc>
|
||||||
<lastmod>{{ page.date }}</lastmod>
|
<lastmod>{{ page.date }}</lastmod>
|
||||||
<changefreq>{{page.data.changeFreq}}</changefreq>
|
<changefreq>{{page.data.changeFreq}}</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
Loading…
Reference in New Issue
Block a user