mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
Replace .eleventyignore manipulation with programmatic ignores
- Root config now excludes stefankoelle/timecapsule via eleventyConfig.ignores - .eleventyignore stays static (no runtime edits) - start-dev.sh simplified: no .bak/.tmp dance, no sleep ordering - All 3 dev servers (8081/8086/8087) run in parallel without crashes
This commit is contained in:
@@ -10,6 +10,10 @@ module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addGlobalData("site", { url: "https://www.moonweb.org" });
|
||||
eleventyConfig.addFilter("date", (d) => d.toISOString());
|
||||
|
||||
// Exclude the standalone sites from the root (moonweb) build
|
||||
eleventyConfig.ignores.add("stefankoelle/**");
|
||||
eleventyConfig.ignores.add("timecapsule/**");
|
||||
|
||||
// Computed pathPrefix based on page's section front matter
|
||||
eleventyConfig.addGlobalData("eleventyComputed", {
|
||||
pathPrefix: (data) => SITES[data.section]?.pathPrefix ?? "",
|
||||
|
||||
Reference in New Issue
Block a user