aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pages/sitemap.njk
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/sitemap.njk')
-rw-r--r--src/pages/sitemap.njk15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pages/sitemap.njk b/src/pages/sitemap.njk
new file mode 100644
index 0000000..455c26b
--- /dev/null
+++ b/src/pages/sitemap.njk
@@ -0,0 +1,15 @@
+---
+eleventyExcludeFromCollections: true
+permalink: /sitemap.xml
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+{% for item in collections.all %}
+ <url>
+ <loc>{{ site.url }}{{ item.url }}</loc>
+ <lastmod>{{ item.date | formatDate }}</lastmod>
+ <changefreq>{{ item.data.sitemapChangefreq | default("monthly") }}</changefreq>
+ <priority>{{ item.data.sitemapPriority | default(0.8) }}</priority>
+ </url>
+{% endfor %}
+</urlset> \ No newline at end of file