From 0ec0cc82ca10b08aad1de3acd7ce53414413caa2 Mon Sep 17 00:00:00 2001 From: hazel Date: Fri, 6 Mar 2026 16:38:48 +0100 Subject: website outline, deployment code Signed-off-by: hazel --- eleventy.config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 eleventy.config.js (limited to 'eleventy.config.js') diff --git a/eleventy.config.js b/eleventy.config.js new file mode 100644 index 0000000..6b0f309 --- /dev/null +++ b/eleventy.config.js @@ -0,0 +1,23 @@ +import { minify } from "html-minifier-next"; + +export default async function (eleventyConfig) { + eleventyConfig.addPassthroughCopy({ public: "/" }); + eleventyConfig.addGlobalData("layout", "layouts/base.njk"); + eleventyConfig.addTransform("htmlmin", (content, path) => + path.endsWith(".html") + ? minify(content, { + useShortDoctype: true, + removeComments: true, + collapseWhitespace: true, + }) + : content, + ); +} + +export const config = { + dir: { + input: "content", + includes: "../_includes", + data: "../_data", + }, +}; -- cgit v1.2.3