Skip to content

Commit

Permalink
sitemap.xml を生成
Browse files Browse the repository at this point in the history
  • Loading branch information
mitonize committed Oct 28, 2023
1 parent 08a0428 commit 87c8181
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sitemap.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %}
<url>
<loc>{{ site.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod>
</url>
{% endfor %}
</urlset>

0 comments on commit 87c8181

Please sign in to comment.