Fix sitemaps: add pathPrefix for subdirectory sites

- Add site.pathPrefix to infra, smarthome, code, retro configs
- Update shared sitemap template to use pathPrefix
- Hub has no prefix, subdirectories get /infra/, /smarthome/, etc.
This commit is contained in:
2026-09-11 11:22:44 +02:00
parent 7524210768
commit c76de3ec36
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://www.moonweb.org" });
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" });