SEO Optims #80

Merged
florent.lesaout merged 3 commits from seo-optims into master 2024-03-18 15:07:08 +01:00
2 changed files with 15 additions and 0 deletions
Showing only changes of commit d72316cf86 - Show all commits

View File

@ -1,3 +1,5 @@
Sitemap: https://www.astrolabe.coop/sitemap.xml
User-agent: * User-agent: *
Disallow: /fonts/ Disallow: /fonts/
Disallow: /form/ Disallow: /form/

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>