add basic page layout
This commit is contained in:
parent
6ca562a9fe
commit
c0b8c33ddb
3 changed files with 17 additions and 0 deletions
11
_layouts/page.njk
Normal file
11
_layouts/page.njk
Normal 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>
|
|
@ -1 +1,4 @@
|
|||
---
|
||||
layout: page.njk
|
||||
---
|
||||
# Hello World :)
|
||||
|
|
|
@ -11,6 +11,9 @@ module.exports = function(eleventyConfig) {
|
|||
return {
|
||||
dir: {
|
||||
input: "content",
|
||||
includes: "../_includes",
|
||||
layouts: "../_layouts",
|
||||
data: "../_data",
|
||||
},
|
||||
pathPrefix: `/${year}/`,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue