add sitemap.xml
This commit is contained in:
parent
a18395acc6
commit
f2364b3105
1 changed files with 15 additions and 0 deletions
15
site/sitemap.njk
Normal file
15
site/sitemap.njk
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
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 %}
|
||||
{% if not page.data.draft and page.url %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | url }}</loc>
|
||||
<lastmod>{{ page.date.toISOString() }}</lastmod>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
Loading…
Add table
Add a link
Reference in a new issue