setup eleventy
This commit is contained in:
parent
9e1b6e452a
commit
2b3ce63127
5 changed files with 2681 additions and 0 deletions
17
eleventy.config.js
Normal file
17
eleventy.config.js
Normal 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}/`,
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue