Files
moonweb-site/infra/eleventy.config.js
T
stefankoelle c76de3ec36 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.
2026-09-11 11:22:44 +02:00

21 lines
714 B
JavaScript

module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("site", { url: "https://www.moonweb.org", pathPrefix: "/infra" });
eleventyConfig.addFilter("date", (d) => d.toISOString());
eleventyConfig.addPassthroughCopy({ "shared/theme-infra.css": "theme.css" });
eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" });
eleventyConfig.addPassthroughCopy({ "shared/favicon/infra.svg": "favicon.svg" });
eleventyConfig.addPassthroughCopy({ "infra/robots.txt": "robots.txt" });
return {
dir: {
input: "infra",
includes: "../shared/_includes",
output: "dist/infra"
},
serverOptions: {
host: "0.0.0.0",
port: 8082
}
};
};