setup eleventy

This commit is contained in:
Lyn Fugmann 2024-09-12 13:41:52 +02:00
parent 9e1b6e452a
commit 2b3ce63127
5 changed files with 2681 additions and 0 deletions

17
eleventy.config.js Normal file
View file

@ -0,0 +1,17 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
// update this :)
const year = 2024;
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addGlobalData("year", year);
return {
dir: {
input: "content",
},
pathPrefix: `/${year}/`,
}
};