add image support. styling tweaks

This commit is contained in:
Rik Berkelder 2025-01-31 02:18:17 +01:00
parent 04794e0842
commit 363014ae07
11 changed files with 826 additions and 50 deletions

View file

@ -1,7 +1,9 @@
import sass from "sass";
import * as sass from "sass";
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
import { DateTime } from "luxon";
export default async function (eleventyConfig) {
// Filters
eleventyConfig.addFilter("dateLocale", function (value) {
return DateTime.fromISO(new Date(value).toISOString()).toLocaleString({
year: 'numeric',
@ -23,6 +25,9 @@ export default async function (eleventyConfig) {
};
}
});
//Images
eleventyConfig.addPlugin(eleventyImageTransformPlugin);
}
export const config = {