From 36036fa8553f39e6f3a14f6644bccce2c2d6354d Mon Sep 17 00:00:00 2001 From: Elliott Hall Date: Mon, 28 Oct 2024 15:27:30 +0000 Subject: [PATCH] changed output dir --- frontend/.eleventy.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/.eleventy.js b/frontend/.eleventy.js index 505b2c63..4e9603ea 100644 --- a/frontend/.eleventy.js +++ b/frontend/.eleventy.js @@ -20,7 +20,7 @@ async function imageShortcode(src, alt, classNames, sizes) { const formats = ["webp", "jpeg"]; let imageMetadata = await Image(src, { widths: widths, - outputDir: '_site/img', + outputDir: 'html/img', urlPath: '/img', formats: formats, }); @@ -96,12 +96,11 @@ function sortByOrderNo(a, b) { module.exports = function (config) { utils.configureMarkdown(config); - config.addPlugin(eleventyNavigationPlugin); - utils.configureSass(config); - // just copy the assets folder as is to the static site _site + + // just copy the assets folder as is to the static site html // config.addPassthroughCopy("**/*.css"); config.addPassthroughCopy("assets/node_modules"); config.addPassthroughCopy("assets/fonts"); @@ -109,13 +108,13 @@ module.exports = function (config) { config.addPassthroughCopy("assets/js"); config.addPassthroughCopy("assets/json"); - // just copy the admin folder as is to the static site _site + // just copy the admin folder as is to the static site html // config.addPassthroughCopy("admin"); config.addShortcode("image", async function (src, alt, sizes) { let metadata = await Image(src, { widths: [300, 600, "auto"], - outputDir: '_site/assets/img', + outputDir: 'html/assets/img', urlPath: '/assets/img', formats: ["webp", "jpeg"], }); @@ -217,6 +216,11 @@ module.exports = function (config) { "excerpt", (s) => stripHtml.stripHtml(s).result.substring(0, 200) + "..." ); + // pathPrefix: "/bcc-11ty/", - return {}; + return { + dir: { + output: "html", + } + }; };