mess wiht config a bit
This commit is contained in:
parent
e43eb69414
commit
a397c2c6eb
1 changed files with 0 additions and 22 deletions
|
@ -2,7 +2,6 @@ import { IdAttributePlugin, InputPathToUrlTransformPlugin, HtmlBasePlugin } from
|
|||
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
||||
import pluginNavigation from "@11ty/eleventy-navigation";
|
||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
|
||||
import pluginFilters from "./_config/filters.js";
|
||||
|
||||
|
@ -72,27 +71,6 @@ export default async function(eleventyConfig) {
|
|||
}
|
||||
});
|
||||
|
||||
// Image optimization: https://www.11ty.dev/docs/plugins/image/#eleventy-transform
|
||||
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
|
||||
// Output formats for each image.
|
||||
formats: ["avif", "webp", "auto"],
|
||||
|
||||
// widths: ["auto"],
|
||||
|
||||
failOnError: false,
|
||||
htmlOptions: {
|
||||
imgAttributes: {
|
||||
// e.g. <img loading decoding> assigned on the HTML tag will override these values.
|
||||
loading: "lazy",
|
||||
decoding: "async",
|
||||
}
|
||||
},
|
||||
|
||||
sharpOptions: {
|
||||
animated: true,
|
||||
},
|
||||
});
|
||||
|
||||
// Filters
|
||||
eleventyConfig.addPlugin(pluginFilters);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue