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 -1
View File
@@ -1,9 +1,10 @@
---
title: "Page Not Found"
section: "code"
tags: "code"
description: "The page you are looking for does not exist."
layout: base.njk
permalink: /404.html
permalink: /code/404.html
---
<div class="error-page">
<h1>404</h1>
-20
View File
@@ -1,20 +0,0 @@
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://www.moonweb.org", pathPrefix: "/code" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-code.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/code.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "code/robots.txt": "robots.txt" });
return {
dir: {
input: "code",
includes: "../shared/_includes",
output: "dist/code"
},
serverOptions: {
host: "0.0.0.0",
port: 8084
}
};
};
+1
View File
@@ -1,6 +1,7 @@
---
title: "Open Source Projects — GitHub Repos & Code | moonweb"
section: "code"
tags: "code"
description: "Curated catalog of my public GitHub projects — automation, dev tools, web apps, and firmware."
layout: base.njk
subcategories:
+2 -1
View File
@@ -1,5 +1,6 @@
---
permalink: /sitemap.xml
permalink: /code/sitemap.xml
sitemapCollection: "code"
eleventyExcludeFromCollections: true
---
{% include "sitemap.njk" %}