├── .gitignore
├── src
├── posts
│ ├── posts.json
│ ├── firstpost.liquid
│ ├── fourthpost.njk
│ ├── thirdpost.njk
│ └── secondpost.liquid
└── _includes
│ └── layouts
│ ├── post.njk
│ ├── home.njk
│ ├── post.liquid
│ └── base.njk
├── www
└── posts
│ ├── firstpost
│ └── index.html
│ ├── fourthpost
│ └── index.html
│ ├── thirdpost
│ └── index.html
│ └── secondpost
│ └── index.html
├── .eleventy.js
├── package.json
└── LICENSE
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/src/posts/posts.json:
--------------------------------------------------------------------------------
1 | {
2 | "tags": [
3 | "posts"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/src/_includes/layouts/post.njk:
--------------------------------------------------------------------------------
1 | {% image "NJK.layout", "arg2", "arg3", "arg4", "arg5", "arg6", "arg7", "arg8", "arg9" %}
2 |
--------------------------------------------------------------------------------
/src/_includes/layouts/home.njk:
--------------------------------------------------------------------------------
1 | ---
2 | layout: layouts/base.njk
3 | templateClass: tmpl-home
4 | ---
5 | {{ content | safe }}
6 |
--------------------------------------------------------------------------------
/src/_includes/layouts/post.liquid:
--------------------------------------------------------------------------------
1 | {% image "LIQUID.layout", "arg2", "arg3", "arg4", "arg5", "arg6", "arg7", "arg8", "arg9" %}
2 |
3 | {{ content }}
4 |
--------------------------------------------------------------------------------
/www/posts/firstpost/index.html:
--------------------------------------------------------------------------------
1 | LIQUID.layout::[
2 | "arg2",
3 | "arg4",
4 | "arg6",
5 | "arg8"
6 | ]
7 |
8 |
9 | This is my first post.
10 |
11 |
--------------------------------------------------------------------------------
/www/posts/fourthpost/index.html:
--------------------------------------------------------------------------------
1 | NJK::[
2 | "arg2",
3 | "arg3",
4 | "arg4",
5 | "arg5",
6 | "arg6",
7 | "arg7",
8 | "arg8",
9 | "arg9"
10 | ]
11 |
--------------------------------------------------------------------------------
/www/posts/thirdpost/index.html:
--------------------------------------------------------------------------------
1 | NJK::[
2 | "arg2",
3 | "arg3",
4 | "arg4",
5 | "arg5",
6 | "arg6",
7 | "arg7",
8 | "arg8",
9 | "arg9"
10 | ]
11 |
--------------------------------------------------------------------------------
/src/posts/firstpost.liquid:
--------------------------------------------------------------------------------
1 | ---
2 | title: This is my first post.
3 | description: This is a post on My Blog about agile frameworks.
4 | date: 2018-05-01
5 | tags:
6 | - another tag
7 | layout: layouts/post.liquid
8 | ---
9 |
10 | {{ title }}
11 |
--------------------------------------------------------------------------------
/src/posts/fourthpost.njk:
--------------------------------------------------------------------------------
1 | ---
2 | title: This is my fourth post.
3 | description: This is a post on My Blog about touchpoints and circling wagons.
4 | date: 2018-09-30
5 | tags: second tag
6 | layout: layouts/post.njk
7 | ---
8 |
9 | {{ title }}
10 |
--------------------------------------------------------------------------------
/src/posts/thirdpost.njk:
--------------------------------------------------------------------------------
1 | ---
2 | title: This is my third post.
3 | description: This is a post on My Blog about win-win survival strategies.
4 | date: 2018-08-24
5 | tags:
6 | - second tag
7 | - posts with two tags
8 | layout: layouts/post.njk
9 | ---
10 |
11 | {{ title }}
12 |
--------------------------------------------------------------------------------
/www/posts/secondpost/index.html:
--------------------------------------------------------------------------------
1 | LIQUID.layout::[
2 | "arg3",
3 | "arg5",
4 | "arg7",
5 | "arg9"
6 | ]
7 |
8 |
9 | This is my second post.
10 |
11 |
12 | LIQUID.secondpost::[
13 | "arg2",
14 | "arg3",
15 | "arg4",
16 | "arg5",
17 | "arg6",
18 | "arg7",
19 | "arg8",
20 | "arg9"
21 | ]
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/posts/secondpost.liquid:
--------------------------------------------------------------------------------
1 | ---
2 | title: This is my second post.
3 | description: This is a post on My Blog about leveraging agile frameworks.
4 | date: 2018-07-04
5 | tags:
6 | - number 2
7 | layout: layouts/post.liquid
8 | ---
9 |
10 | {{ title }}
11 |
12 |
13 | {% image "LIQUID.secondpost", "arg2", "arg3", "arg4", "arg5", "arg6", "arg7", "arg8", "arg9" %}
14 |
15 |
--------------------------------------------------------------------------------
/.eleventy.js:
--------------------------------------------------------------------------------
1 | module.exports = function(eleventyConfig) {
2 | eleventyConfig.addShortcode("image", (t, ...args) => {
3 | console.log(`image [${t}]`, args);
4 | return t + "::" + JSON.stringify(args, null, 2);
5 | });
6 |
7 | return {
8 | templateFormats: [
9 | "md",
10 | "njk",
11 | "html",
12 | "liquid"
13 | ],
14 |
15 | // markdownTemplateEngine: "njk",
16 |
17 | dir: {
18 | input: "src",
19 | output: "www",
20 | }
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "eleventy-base-blog",
3 | "description": "A starter repository for a blog web site using the Eleventy static site generator.",
4 | "version": "6.0.0",
5 | "author": "Zach Leatherman (https://zachleat.com/)",
6 | "bugs": {
7 | "url": "https://github.com/pdehaan/11ty-2348/issues"
8 | },
9 | "devDependencies": {
10 | "@11ty/eleventy": "^1.0.1"
11 | },
12 | "homepage": "https://github.com/pdehaan/11ty-2348#readme",
13 | "keywords": [],
14 | "license": "MIT",
15 | "main": ".eleventy.js",
16 | "repository": {
17 | "type": "git",
18 | "url": "git+https://github.com/pdehaan/11ty-2348.git"
19 | },
20 | "scripts": {
21 | "bench": "DEBUG=Eleventy:Benchmark* npx @11ty/eleventy",
22 | "build": "npx @11ty/eleventy",
23 | "debug": "DEBUG=* npx @11ty/eleventy",
24 | "serve": "npx @11ty/eleventy --serve",
25 | "start": "npx @11ty/eleventy --serve",
26 | "watch": "npx @11ty/eleventy --watch"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Zach Leatherman @zachleat
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/src/_includes/layouts/base.njk:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ title or metadata.title }}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | {#- Read more about `eleventy-navigation` at https://www.11ty.dev/docs/plugins/navigation/ #}
21 |
22 | {%- for entry in collections.all | eleventyNavigation %}
23 | {{ entry.title }}
24 | {%- endfor %}
25 |
26 |
27 |
28 |
29 |
30 |
31 |
39 |
40 |
41 | {{ content | safe }}
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------