Skip to content

Commit

Permalink
separates assets in layout from static pass-through assets (#236)
Browse files Browse the repository at this point in the history
* separates assets from static

* separates assets from static
  • Loading branch information
simpixelated authored May 11, 2024
1 parent 35d86b5 commit 5b0b111
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy(`./${config.dir.input}/global.js`)
eleventyConfig.addPassthroughCopy(`./${config.dir.input}/static`)
eleventyConfig.addNunjucksAsyncShortcode("image", async (src, alt, sizes) => {
const metadata = await Image(`./${config.dir.input}/static/${src}`, {
outputDir: `./${config.dir.output}/static/`,
urlPath: "/static/",
const metadata = await Image(`./${config.dir.input}/assets/${src}`, {
outputDir: `./${config.dir.output}/assets/`,
urlPath: "/assets/",
formats: ["auto"],
widths: ["auto"],
dryRun: src.endsWith(".svg"),
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 5b0b111

Please sign in to comment.