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
This commit is contained in:
2026-09-11 12:31:47 +02:00
parent 10b05736c8
commit c77ad91e0e
58 changed files with 220 additions and 324 deletions
+2 -2
View File
@@ -20,8 +20,8 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ site.pathPrefix | default('') }}/shared-base.css">
<link rel="stylesheet" href="{{ site.pathPrefix | default('') }}/theme.css">
<link rel="stylesheet" href="/shared-base.css">
<style>:root { --accent: {% if section == 'infra' %}#99333A{% elif section == 'smarthome' %}#1f8a8a{% elif section == 'code' %}#3E5098{% elif section == 'retro' %}#8a6d3b{% else %}#3b6ea5{% endif %}; }</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
+3 -2
View File
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in collections.all %}
{%- set sitemapPages = collections[sitemapCollection] if sitemapCollection else collections.all %}
{%- for page in sitemapPages %}
{%- if not page.url.includes("404") %}
<url>
<loc>{{ site.url }}{{ site.pathPrefix | default("") }}{{ page.url }}</loc>
<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>