feat(SEO): ajoute un sitemap

pull/1/head
Jalil Arfaoui 2022-08-08 11:21:12 +02:00
parent a384299755
commit 3feec0c334
1 changed files with 13 additions and 0 deletions

13
src/sitemap.njk Normal file
View File

@ -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>