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

3
.gitignore vendored
View file

@ -130,5 +130,8 @@ dist
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
# eleventy build dir
_site/
# ---> direnv # ---> direnv
.direnv/ .direnv/

1
content/index.md Normal file
View file

@ -0,0 +1 @@
# Hello World :)

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}/`,
}
};

2646
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

14
package.json Normal file
View file

@ -0,0 +1,14 @@
{
"name": "ese-website",
"version": "2.0.0",
"description": "This is the WIP rewrite of the ESE website.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "FSR Informatik TU Dresden",
"license": "MIT",
"devDependencies": {
"@11ty/eleventy": "^2.0.1"
}
}