diff --git a/eleventy.config.js b/eleventy.config.js index 84e5e82f..b5fd824e 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -19,6 +19,7 @@ import timeToRead from "eleventy-plugin-time-to-read"; import embedEverything from "eleventy-plugin-embed-everything"; import env from "./src/_data/env.js"; import { minify } from "html-minifier-terser"; +import slugify from "slugify"; import path from 'path'; @@ -35,16 +36,16 @@ export default async function(eleventyConfig) { eleventyConfig.addFilter("debug", (content) => `
${inspect(content)}`);
eleventyConfig.addPlugin(eleventyImageOnRequestDuringServePlugin);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin, {
- // The base URL: defaults to Path Prefix
- // baseHref: eleventyConfig.pathPrefix,
+ // The base URL: defaults to Path Prefix
+ // baseHref: eleventyConfig.pathPrefix,
- // But you could use a full URL here too:
- // baseHref: env.baseUrl,
+ // But you could use a full URL here too:
+ // baseHref: env.baseUrl,
- // Comma separated list of output file extensions to apply
- // our transform to. Use `false` to opt-out of the transform.
- extensions: "html",
- });
+ // Comma separated list of output file extensions to apply
+ // our transform to. Use `false` to opt-out of the transform.
+ extensions: "html",
+ });
// Return active path attributes
eleventyConfig.addShortcode('activepath', function (itemUrl, currentUrl) {
@@ -58,40 +59,40 @@ export default async function(eleventyConfig) {
});
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
- // which file extensions to process
- extensions: "html",
+ // which file extensions to process
+ extensions: "html",
- // Add any other Image utility options here:
+ // Add any other Image utility options here:
- // optional, output image formats
- formats: ["webp", "jpeg"],
- // formats: ["auto"],
+ // optional, output image formats
+ formats: ["webp", "jpeg"],
+ // formats: ["auto"],
- // optional, output image widths
- widths: [800, 500, 300],
+ // optional, output image widths
+ widths: [1980, 1200, 800, 500, 300],
urlPath: "/static/img/",
outputDir: "./_site/static/img/",
- // optional, attributes assigned on