setup eleventy
This commit is contained in:
parent
9e1b6e452a
commit
2b3ce63127
5 changed files with 2681 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
1
content/index.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Hello World :)
|
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}/`,
|
||||||
|
}
|
||||||
|
};
|
2646
package-lock.json
generated
Normal file
2646
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
14
package.json
Normal file
14
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue