Skip to content

Commit

Permalink
Make an attempt at fixing image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlandry93 committed Jul 23, 2024
1 parent 2046e7d commit 9a0850a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ module.exports = function (eleventyConfig) {
let metadata = await Image(src, {
widths: [350, "auto"],
formats: ["webp", "jpeg"],
});
}, {
outputDir: "./_site/img/",
urlPath: "/img/"
});


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

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

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

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

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

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

Expand Down Expand Up @@ -102,7 +105,7 @@ module.exports = function (eleventyConfig) {

eleventyConfig.addPassthroughCopy({
"_static/": "/",
"img": "/img/",
"img/": "/img/",
"node_modules/photoswipe/dist/photoswipe-lightbox.esm.min.js": "assets/photoswipe-lightbox.esm.min.js",
"node_modules/photoswipe/dist/photoswipe.esm.min.js": "assets/photoswipe.esm.min.js",
"node_modules/photoswipe/dist/photoswipe.css": "assets/photoswipe.css"
Expand Down
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: "/img/",
outputDir: "./_site/img",
urlPath: "/img/"
}

Expand Down
Binary file removed img/boyZcudo5F-1565.jpeg
Binary file not shown.
Binary file removed img/boyZcudo5F-300.jpeg
Binary file not shown.
Binary file removed img/boyZcudo5F-600.jpeg
Binary file not shown.

0 comments on commit 9a0850a

Please sign in to comment.