├── .gitignore
├── src
├── stuff-it.html
├── _includes
│ └── stuff.html
└── _data
│ └── site.js
├── .eleventy.js
├── www
└── stuff-it
│ └── index.html
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/src/stuff-it.html:
--------------------------------------------------------------------------------
1 | ---
2 | title: Hello World
3 | ---
4 |
5 |
{{ title }}
6 |
7 | {% include stuff.html %}
8 |
9 |
10 |
11 | {{ site.data | inspect }}
12 |
--------------------------------------------------------------------------------
/src/_includes/stuff.html:
--------------------------------------------------------------------------------
1 | {%- assign stuff = site.data.stuff | sort: "current" -%}
2 |
7 |
--------------------------------------------------------------------------------
/src/_data/site.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | stuff: [
4 | { title: "OnE", url: "/one", current: true },
5 | { title: "TwO", url: "/two", current: false },
6 | { title: "ThReE", url: "/three", current: false },
7 | { title: "FoUr", url: "/four", current: true },
8 | { title: "FiVe", url: "/five", current: false },
9 | ],
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/.eleventy.js:
--------------------------------------------------------------------------------
1 | module.exports = (eleventyConfig) => {
2 | eleventyConfig.addFilter("inspect", require("node:util").inspect);
3 |
4 | eleventyConfig.setLiquidOptions({
5 | dynamicPartials: false,
6 | strictVariables: false,
7 | strictFilters: false,
8 | jekyllInclude: true
9 | });
10 |
11 | return {
12 | dir: {
13 | input: "src",
14 | output: "www",
15 | }
16 | };
17 | };
18 |
--------------------------------------------------------------------------------
/www/stuff-it/index.html:
--------------------------------------------------------------------------------
1 |
2 | Hello World
3 |
4 |
12 |
13 |
14 |
15 |
16 | {
17 | stuff: [
18 | { title: 'TwO', url: '/two', current: false },
19 | { title: 'ThReE', url: '/three', current: false },
20 | { title: 'FiVe', url: '/five', current: false },
21 | { title: 'OnE', url: '/one', current: true },
22 | { title: 'FoUr', url: '/four', current: true }
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "11ty-2229",
3 | "description": "Unknown Liquid filters and variables block build even if strict is off #2229",
4 | "version": "1.0.0",
5 | "author": "Peter deHaan ",
6 | "bugs": {
7 | "url": "https://github.com/pdehaan/11ty-2229/issues"
8 | },
9 | "devDependencies": {
10 | "@11ty/eleventy": "^1.0.0"
11 | },
12 | "homepage": "https://github.com/pdehaan/11ty-2229#readme",
13 | "keywords": [],
14 | "license": "MPL-2.0",
15 | "main": ".eleventy.js",
16 | "repository": {
17 | "type": "git",
18 | "url": "git+https://github.com/pdehaan/11ty-2229.git"
19 | },
20 | "scripts": {
21 | "build": "eleventy",
22 | "test": "echo \"Error: no test specified\" && exit 1"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------