aboutsummaryrefslogtreecommitdiffstats
path: root/src/sitemap.njk
diff options
context:
space:
mode:
Diffstat (limited to 'src/sitemap.njk')
-rw-r--r--src/sitemap.njk16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sitemap.njk b/src/sitemap.njk
new file mode 100644
index 0000000..5672496
--- /dev/null
+++ b/src/sitemap.njk
@@ -0,0 +1,16 @@
+---
+permalink: "/sitemap.xml"
+eleventyExcludeFromCollections: true
+---
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+{% for item in collections.all %}
+ <url>
+ {% set absoluteUrl %}{{ item.url | htmlBaseUrl(metadata.url) }}{% endset %}
+ <loc>{{absoluteUrl}}</loc>
+ <lastmod>{{ item.date | htmlDateString }}</lastmod>
+ </url>
+{% endfor %}
+</urlset>
+