Skip to content

Commit

Permalink
places lazyloader after URL transform in build
Browse files Browse the repository at this point in the history
  • Loading branch information
klalicki committed Mar 14, 2024
1 parent 89fad86 commit 94cd2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const markdownLib = markdownIt(markdownItOptions).use(markdownItAttrs);
module.exports = function (eleventyConfig) {
// add eleventy navigation plugin
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(lazyImagesPlugin, { appendInitScript: false });

eleventyConfig.addPlugin(embedYouTube);

let p = {};
Expand All @@ -32,6 +32,7 @@ module.exports = function (eleventyConfig) {
p = { pathPrefix: urlBase };
}

eleventyConfig.addPlugin(lazyImagesPlugin, { appendInitScript: false });
// Return your Object options:
eleventyConfig.addPassthroughCopy({ "./theme/assets": "assets" });
eleventyConfig.addPassthroughCopy({ "./img": "img" });
Expand Down

0 comments on commit 94cd2e8

Please sign in to comment.