We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sitemap.njk
1 parent cc68b29 commit 7f21c6fCopy full SHA for 7f21c6f
1 file changed
src/sitemap.njk
@@ -2,15 +2,16 @@
2
permalink: /sitemap.xml
3
eleventyExcludeFromCollections: true
4
---
5
+
6
<?xml version="1.0" encoding="utf-8"?>
7
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- {% for page in collections.all %}
8
+{% for page in collections.all %}
9
{% if not page.data.draft %}
- <url>
10
+ <url>
11
<loc>{{ link.website }}{{ page.url | url }}</loc>
12
<lastmod>{{ page.date.toISOString() }}</lastmod>
13
<changefreq>{{ page.data.changeFreq if page.data.changeFreq else "monthly" }}</changefreq>
- </url>
14
+ </url>
15
{% endif %}
- {% endfor %}
16
-</urlset>
+{% endfor %}
17
+</urlset>
0 commit comments