mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
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:
+2
-1
@@ -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>
|
||||
|
||||
@@ -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,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:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
permalink: /sitemap.xml
|
||||
permalink: /code/sitemap.xml
|
||||
sitemapCollection: "code"
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
{% include "sitemap.njk" %}
|
||||
|
||||
Reference in New Issue
Block a user