This repository has been archived on 2023-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
erratum-old/content/sitemap/sitemap.xml.njk
Kazhnuz 41031508df feat: site initial eleventy
Fixes #1
Fixes #2
Fixes #5
2023-04-29 20:46:41 +02:00

14 lines
448 B
Text

---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{%- for page in collections.all %}
{% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
<url>
<loc>{{ absoluteUrl }}</loc>
<lastmod>{{ page.date | htmlDateString }}</lastmod>
</url>
{%- endfor %}
</urlset>