Files
moonweb-site/shared/_includes/sitemap.njk
T
stefankoelle c77ad91e0e Consolidate all moonweb sites into single Eleventy config
- Single eleventy.config.js at root with computed pathPrefix per section
- Accent colors inlined in base.njk (no per-site theme.css needed)
- Hub pages output at root via explicit permalinks
- Per-section sitemaps with tag-based collections
- .eleventyignore excludes stefankoelle, timecapsule, markdown files
- Deleted: 5 per-site configs, merge script
- Simplified: package.json (single build/dev commands)
- Simplified: GitHub Actions workflow (no matrix, no merge job)
- Fixed: parent links for sub-site detail pages
2026-09-11 12:31:47 +02:00

15 lines
619 B
Plaintext

<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- set sitemapPages = collections[sitemapCollection] if sitemapCollection else collections.all %}
{%- for page in sitemapPages %}
{%- if not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ pathPrefix }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>
</url>
{%- endif %}
{%- endfor %}
</urlset>