├── .gitignore ├── www ├── pages │ ├── four │ │ └── index.html │ ├── one │ │ └── index.html │ ├── two │ │ └── index.html │ └── three │ │ └── index.html └── tags │ ├── all │ └── index.html │ ├── four │ └── index.html │ ├── home │ └── index.html │ ├── one │ └── index.html │ ├── two │ └── index.html │ ├── about │ └── index.html │ ├── contact │ └── index.html │ ├── pages │ └── index.html │ ├── three │ └── index.html │ └── projects │ └── index.html ├── src ├── pages │ ├── pages.11tydata.js │ ├── one.liquid │ ├── four.liquid │ ├── two.liquid │ └── three.liquid └── tags.liquid ├── eleventy.config.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /www/pages/four/index.html: -------------------------------------------------------------------------------- 1 |

FoUr

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

oNe

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

tWo

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

ThReE

2 | -------------------------------------------------------------------------------- /www/tags/all/index.html: -------------------------------------------------------------------------------- 1 |

all

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/four/index.html: -------------------------------------------------------------------------------- 1 |

four

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/home/index.html: -------------------------------------------------------------------------------- 1 |

home

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/one/index.html: -------------------------------------------------------------------------------- 1 |

one

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/two/index.html: -------------------------------------------------------------------------------- 1 |

two

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/about/index.html: -------------------------------------------------------------------------------- 1 |

about

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/contact/index.html: -------------------------------------------------------------------------------- 1 |

contact

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/pages/index.html: -------------------------------------------------------------------------------- 1 |

pages

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/three/index.html: -------------------------------------------------------------------------------- 1 |

three

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /www/tags/projects/index.html: -------------------------------------------------------------------------------- 1 |

projects

2 | 3 | code="foo" 4 | -------------------------------------------------------------------------------- /src/pages/pages.11tydata.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | tags: ["pages"] 3 | }; 4 | -------------------------------------------------------------------------------- /src/pages/one.liquid: -------------------------------------------------------------------------------- 1 | --- 2 | title: oNe 3 | tags: 4 | - one 5 | - home 6 | --- 7 | 8 |

{{ title }}

9 | -------------------------------------------------------------------------------- /src/pages/four.liquid: -------------------------------------------------------------------------------- 1 | --- 2 | title: FoUr 3 | tags: 4 | - four 5 | - about 6 | --- 7 | 8 |

{{ title }}

9 | -------------------------------------------------------------------------------- /src/pages/two.liquid: -------------------------------------------------------------------------------- 1 | --- 2 | title: tWo 3 | tags: 4 | - two 5 | - projects 6 | --- 7 | 8 |

{{ title }}

9 | -------------------------------------------------------------------------------- /src/pages/three.liquid: -------------------------------------------------------------------------------- 1 | --- 2 | title: ThReE 3 | tags: 4 | - three 5 | - contact 6 | --- 7 | 8 |

{{ title }}

9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /src/tags.liquid: -------------------------------------------------------------------------------- 1 | --- 2 | title: GenericTitle 3 | pagination: 4 | data: collections 5 | size: 1 6 | alias: tag 7 | eleventyComputed: 8 | code: "foo" #Becomes "" when it should be "foo" 9 | permalink: /tags/{{ tag }}/ 10 | collection: tag 11 | # layout: index 12 | eleventyExcludeFromCollections: true 13 | --- 14 | 15 |

{{ tag }}

16 | 17 | code={{ code | json }} 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "11ty-2512", 3 | "description": "", 4 | "version": "1.0.0", 5 | "author": "Peter deHaan ", 6 | "bugs": { 7 | "url": "https://github.com/pdehaan/11ty-2512/issues" 8 | }, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "@11ty/eleventy": "^2.0.0" 12 | }, 13 | "homepage": "https://github.com/pdehaan/11ty-2512#readme", 14 | "keywords": [], 15 | "license": "MPL-2.0", 16 | "main": "eleventy.config.js", 17 | "repository": { 18 | "type": "git", 19 | "url": "git+https://github.com/pdehaan/11ty-2512.git" 20 | }, 21 | "scripts": { 22 | "build": "eleventy", 23 | "postbuild": "npx prettier www --write", 24 | "test": "echo \"Error: no test specified\" && exit 1" 25 | } 26 | } 27 | --------------------------------------------------------------------------------