feat(seo): add sitemap
This commit is contained in:
parent
cbe1ce6626
commit
d72316cf86
@ -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
13
src/sitemap.njk
Normal 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>
|
Loading…
Reference in New Issue
Block a user