├── .gitignore
├── src
├── posts
│ ├── posts.json
│ └── index.njk
└── _includes
│ └── layouts
│ └── post.html
├── .eleventy.js
├── www
└── blog
│ └── this-is-my-fancy-blog-title-and-stuff-cool-eh
│ └── index.html
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/src/posts/posts.json:
--------------------------------------------------------------------------------
1 | {
2 | "layout": "layouts/post.html",
3 | "permalink": "/blog/{{ title | slug }}/"
4 | }
5 |
--------------------------------------------------------------------------------
/src/posts/index.njk:
--------------------------------------------------------------------------------
1 | ---
2 | title: This is my fancy blog title and stuff, cool eh?
3 | ---
4 |
5 |
{{ title }}
6 |
--------------------------------------------------------------------------------
/.eleventy.js:
--------------------------------------------------------------------------------
1 | module.exports = function (eleventyConfig) {
2 | return {
3 | dir: {
4 | input: "src",
5 | output: "www",
6 | }
7 | };
8 | };
9 |
--------------------------------------------------------------------------------
/src/_includes/layouts/post.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{ title }}
6 |
7 |
8 |
9 | {{ content }}
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/www/blog/this-is-my-fancy-blog-title-and-stuff-cool-eh/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | This is my fancy blog title and stuff, cool eh?
6 |
7 |
8 |
9 |
10 | This is my fancy blog title and stuff, cool eh?
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "11ty-2024",
3 | "description": "",
4 | "version": "1.0.0",
5 | "author": "",
6 | "bugs": {
7 | "url": "https://github.com/pdehaan/11ty-2024/issues"
8 | },
9 | "dependencies": {},
10 | "devDependencies": {
11 | "@11ty/eleventy": "^0.12.1"
12 | },
13 | "homepage": "https://github.com/pdehaan/11ty-2024#readme",
14 | "keywords": [],
15 | "license": "ISC",
16 | "main": "index.js",
17 | "repository": {
18 | "type": "git",
19 | "url": "git+https://github.com/pdehaan/11ty-2024.git"
20 | },
21 | "scripts": {
22 | "build": "eleventy",
23 | "test": "echo \"Error: no test specified\" && exit 1"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------