add header, navigation, pages
This commit is contained in:
parent
c0b8c33ddb
commit
ca43d25e0f
9 changed files with 57 additions and 3 deletions
6
_includes/header.njk
Normal file
6
_includes/header.njk
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<header>
|
||||||
|
<a href="/" title="home">ESE Logo</a>
|
||||||
|
<nav>
|
||||||
|
{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}
|
||||||
|
</nav>
|
||||||
|
</header>
|
|
@ -6,6 +6,10 @@
|
||||||
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
|
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ content | safe }}
|
{% include 'header.njk' %}
|
||||||
|
|
||||||
|
<main>
|
||||||
|
{{ content | safe }}
|
||||||
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
7
content/campus.md
Normal file
7
content/campus.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: page.njk
|
||||||
|
eleventyNavigation:
|
||||||
|
key: Campus & Faculty
|
||||||
|
---
|
||||||
|
# Campus & Faculty
|
||||||
|
|
6
content/faq.md
Normal file
6
content/faq.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
layout: page.njk
|
||||||
|
eleventyNavigation:
|
||||||
|
key: FAQ
|
||||||
|
---
|
||||||
|
# Frequently Asked Questions
|
7
content/first-steps.md
Normal file
7
content/first-steps.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: page.njk
|
||||||
|
eleventyNavigation:
|
||||||
|
key: First Steps
|
||||||
|
---
|
||||||
|
# First Steps
|
||||||
|
|
6
content/program.md
Normal file
6
content/program.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
layout: page.njk
|
||||||
|
eleventyNavigation:
|
||||||
|
key: Program
|
||||||
|
---
|
||||||
|
# Program
|
|
@ -1,10 +1,12 @@
|
||||||
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
||||||
|
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
|
||||||
|
|
||||||
// update this :)
|
// update this :)
|
||||||
const year = 2024;
|
const year = 2024;
|
||||||
|
|
||||||
module.exports = function(eleventyConfig) {
|
module.exports = function(eleventyConfig) {
|
||||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||||
|
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||||
|
|
||||||
eleventyConfig.addGlobalData("year", year);
|
eleventyConfig.addGlobalData("year", year);
|
||||||
|
|
||||||
|
|
17
package-lock.json
generated
17
package-lock.json
generated
|
@ -9,7 +9,8 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^2.0.1"
|
"@11ty/eleventy": "^2.0.1",
|
||||||
|
"@11ty/eleventy-navigation": "^0.3.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@11ty/dependency-tree": {
|
"node_modules/@11ty/dependency-tree": {
|
||||||
|
@ -106,6 +107,20 @@
|
||||||
"url": "https://opencollective.com/11ty"
|
"url": "https://opencollective.com/11ty"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@11ty/eleventy-navigation": {
|
||||||
|
"version": "0.3.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-0.3.5.tgz",
|
||||||
|
"integrity": "sha512-4aKW5aIQDFed8xs1G1pWcEiFPcDSwZtA4IH1eERtoJ+Xy+/fsoe0pzbDmw84bHZ9ACny5jblENhfZhcCxklqQw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"dependency-graph": "^0.11.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/11ty"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@11ty/eleventy-utils": {
|
"node_modules/@11ty/eleventy-utils": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-1.0.3.tgz",
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"author": "FSR Informatik TU Dresden",
|
"author": "FSR Informatik TU Dresden",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^2.0.1"
|
"@11ty/eleventy": "^2.0.1",
|
||||||
|
"@11ty/eleventy-navigation": "^0.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue