We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25cdc8c + 5540937 commit 1b7ba71Copy full SHA for 1b7ba71
src/sitemap.njk
@@ -0,0 +1,18 @@
1
+---json
2
+{
3
+ "permalink": "sitemap.xml",
4
+ "eleventyExcludeFromCollections": true,
5
+ "metadata": {
6
+ "url": "https://until.tsukuba.dev"
7
+ }
8
+}
9
+---
10
+<?xml version="1.0" encoding="UTF-8"?>
11
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
12
+ {%- for page in collections.all %}
13
+ {%- set absolutePageUrl = page.url | absoluteUrl(metadata.url) %}
14
+ <url>
15
+ <loc>{{ absolutePageUrl }}</loc>
16
+ </url>
17
+ {%- endfor %}
18
+</urlset>
0 commit comments