Skip to content

Commit

Permalink
Try and copy the images directly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlandry93 committed Jul 23, 2024
1 parent df518a9 commit c2d501e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function (eleventyConfig) {
widths: [350, "auto"],
formats: ["webp", "jpeg"],
}, {
outputDir: "./_site/img/",
outputDir: "_static/img/",
urlPath: "/img/"
});

Expand All @@ -36,7 +36,7 @@ module.exports = function (eleventyConfig) {
};

let options = {
outputDir: "./_site/img/",
outputDir: "_static/img/",
urlPath: "/img/"
}

Expand All @@ -47,7 +47,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addShortcode("imageAsFile", async function (src, alt) {
let options = {
outputDir: "./_site/img/",
outputDir: "_static/img/",
urlPath: "/img/"
}

Expand All @@ -65,7 +65,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addShortcode("galleryImage", async function (src, alt) {
let options = {
outputDir: "./_site/img/",
outputDir: "_static/img/",
urlPath: "/img/"
}

Expand Down Expand Up @@ -102,8 +102,6 @@ module.exports = function (eleventyConfig) {
return input_array.slice(0, limit);
});

eleventyConfig.addPassthroughCopy("img");

eleventyConfig.addPassthroughCopy({
"_static/": "/",
"node_modules/photoswipe/dist/photoswipe-lightbox.esm.min.js": "assets/photoswipe-lightbox.esm.min.js",
Expand All @@ -115,7 +113,8 @@ module.exports = function (eleventyConfig) {
dir: {
input: "content",
includes: "../_includes",
data: "../_data"
data: "../_data",
output: "_site"
}
}
};
2 changes: 1 addition & 1 deletion content/posts/posts.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const Image = require('@11ty/eleventy-img');

const options = {
outputDir: "./_site/img",
outputDir: "./_static/img",
urlPath: "/img/"
}

Expand Down

0 comments on commit c2d501e

Please sign in to comment.