Skip to content

Commit

Permalink
changed output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotthall committed Oct 28, 2024
1 parent 72426a3 commit 36036fa
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontend/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down Expand Up @@ -96,26 +96,25 @@ 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");
config.addPassthroughCopy("assets/img");
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"],
});
Expand Down Expand Up @@ -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",
}
};
};

0 comments on commit 36036fa

Please sign in to comment.