├── .gitignore ├── www ├── pages │ ├── five │ │ └── index.html │ ├── four │ │ └── index.html │ ├── one │ │ └── index.html │ ├── six │ │ └── index.html │ ├── two │ │ └── index.html │ └── three │ │ └── index.html └── tags │ ├── bird │ └── index.html │ ├── dog │ └── index.html │ └── cat │ └── index.html ├── src ├── pages │ ├── six.njk │ ├── four.njk │ ├── one.njk │ ├── two.njk │ ├── five.njk │ ├── three.njk │ └── _tags.njk └── _data │ └── series.js ├── eleventy.config.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /www/pages/five/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Five

3 | 4 |

This is page five.

5 | -------------------------------------------------------------------------------- /www/pages/four/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Four

3 | 4 |

This is page four.

5 | -------------------------------------------------------------------------------- /www/pages/one/index.html: -------------------------------------------------------------------------------- 1 | 2 |

One

3 | 4 |

This is page one.

5 | -------------------------------------------------------------------------------- /www/pages/six/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Six

3 | 4 |

This is page six.

5 | -------------------------------------------------------------------------------- /www/pages/two/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Two

3 | 4 |

This is page two.

5 | -------------------------------------------------------------------------------- /www/pages/three/index.html: -------------------------------------------------------------------------------- 1 | 2 |

Three

3 | 4 |

This is page three.

5 | -------------------------------------------------------------------------------- /src/pages/six.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Six 3 | --- 4 | 5 |

{{ title }}

6 | 7 |

This is page six.

8 | -------------------------------------------------------------------------------- /www/tags/bird/index.html: -------------------------------------------------------------------------------- 1 |
2 |

bird

3 |

birds are lousy pets.

4 |
5 | 6 |
7 | 8 |
-------------------------------------------------------------------------------- /src/pages/four.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Four 3 | tags: 4 | - possum 5 | - cat 6 | --- 7 | 8 |

{{ title }}

9 | 10 |

This is page four.

11 | -------------------------------------------------------------------------------- /src/pages/one.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: One 3 | tags: 4 | - cat 5 | - snake 6 | --- 7 | 8 |

{{ title }}

9 | 10 |

This is page one.

11 | -------------------------------------------------------------------------------- /src/pages/two.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Two 3 | tags: 4 | - ferret 5 | - snake 6 | --- 7 | 8 |

{{ title }}

9 | 10 |

This is page two.

11 | -------------------------------------------------------------------------------- /src/pages/five.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Five 3 | tags: 4 | - turkey 5 | - snake 6 | --- 7 | 8 |

{{ title }}

9 | 10 |

This is page five.

11 | -------------------------------------------------------------------------------- /src/pages/three.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Three 3 | tags: 4 | - badger 5 | - dog 6 | --- 7 | 8 |

{{ title }}

9 | 10 |

This is page three.

11 | -------------------------------------------------------------------------------- /src/_data/series.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | {name: "cat", description: "this is something about a cat."}, 3 | {name: "dog", description: "this is a sentence about how dogs are better than cats."}, 4 | {name: "bird", description: "birds are lousy pets."}, 5 | ]; 6 | -------------------------------------------------------------------------------- /www/tags/dog/index.html: -------------------------------------------------------------------------------- 1 |
2 |

dog

3 |

this is a sentence about how dogs are better than cats.

4 |
5 | 6 |
7 | 8 |
9 |

Three

10 | More… 11 |
12 | 13 |
-------------------------------------------------------------------------------- /eleventy.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @param {import("@11ty/eleventy/src/UserConfig")} eleventyConfig 3 | * @returns {ReturnType} 4 | */ 5 | module.exports = function (eleventyConfig) { 6 | return { 7 | dir: { 8 | input: "src", 9 | output: "www", 10 | } 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /www/tags/cat/index.html: -------------------------------------------------------------------------------- 1 |
2 |

cat

3 |

this is something about a cat.

4 |
5 | 6 |
7 | 8 | 12 | 13 | 17 | 18 |
-------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "11ty-3033", 3 | "description": "", 4 | "version": "1.0.0", 5 | "author": "Peter deHaan ", 6 | "repository": "pdehaan/11ty-3033", 7 | "devDependencies": { 8 | "@11ty/eleventy": "^2.0.1" 9 | }, 10 | "keywords": [], 11 | "license": "MPL-2.0", 12 | "main": "eleventy.config.js", 13 | "scripts": { 14 | "build": "eleventy", 15 | "test": "echo \"Error: no test specified\" && exit 1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/pages/_tags.njk: -------------------------------------------------------------------------------- 1 | --- 2 | pagination: 3 | data: series 4 | size: 1 5 | alias: tag 6 | permalink: "/tags/{{ tag.name | slugify }}/" 7 | --- 8 | 9 | {%- set pages = collections[tag.name] -%} 10 | 11 |
12 |

{{ tag.name }}

13 |

{{ tag.description }}

14 |
15 | 16 |
17 | {% for p in pages %} 18 |
19 |

{{ p.data.title }}

20 | More… 21 |
22 | {% endfor %} 23 |
--------------------------------------------------------------------------------