add basic page layout

This commit is contained in:
Lyn Fugmann 2024-09-13 17:04:16 +02:00
parent 6ca562a9fe
commit c0b8c33ddb
3 changed files with 17 additions and 0 deletions

11
_layouts/page.njk Normal file
View file

@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
</head>
<body>
{{ content | safe }}
</body>
</html>

View file

@ -1 +1,4 @@
---
layout: page.njk
---
# Hello World :)

View file

@ -11,6 +11,9 @@ module.exports = function(eleventyConfig) {
return {
dir: {
input: "content",
includes: "../_includes",
layouts: "../_layouts",
data: "../_data",
},
pathPrefix: `/${year}/`,
}