├── .gitignore
├── src
├── _includes
│ ├── _morpho.js
│ └── base.liquid
└── index.liquid
├── .eleventy.js
├── www
└── index.html
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/src/_includes/_morpho.js:
--------------------------------------------------------------------------------
1 | // Oh hey, an inline script.
2 |
--------------------------------------------------------------------------------
/src/index.liquid:
--------------------------------------------------------------------------------
1 | ---
2 | layout: base.liquid
3 | scripts:
4 | - "https://cdn.jquery.biz/jquery.min.js"
5 | - "_morpho.js"
6 | title: This is neat
7 | ---
8 |
9 | I AM SOME CONTENT
10 |
11 |
--------------------------------------------------------------------------------
/.eleventy.js:
--------------------------------------------------------------------------------
1 | module.exports = (eleventyConfig) => {
2 | eleventyConfig.addFilter("is_abs_url", function (url) {
3 | return /^https?:\/\//.test(url);
4 | });
5 |
6 | return {
7 | dir: {
8 | input: "src",
9 | output: "www",
10 | },
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | This is neat
6 |
7 |
9 |
10 |
11 |
12 |
13 | I AM SOME CONTENT
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/_includes/base.liquid:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{ title }}
6 | {%- for script in scripts %}
7 | {%- if script contains "http://" or script contains "https://" %}
8 |
9 | {%- else %}
10 |
11 | {%- endif %}
12 | {%- endfor %}
13 |
14 |
15 |
16 | {{ content }}
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "11ty-2181",
3 | "description": "Liquid: Unable to pull include path from front matter #2181",
4 | "version": "1.0.0",
5 | "author": "Peter deHaan ",
6 | "bugs": {
7 | "url": "https://github.com/pdehaan/11ty-2181/issues"
8 | },
9 | "dependencies": {},
10 | "devDependencies": {
11 | "@11ty/eleventy": "^1.0.0"
12 | },
13 | "homepage": "https://github.com/pdehaan/11ty-2181#readme",
14 | "keywords": [],
15 | "license": "MPL-2.0",
16 | "main": "index.js",
17 | "private": true,
18 | "repository": {
19 | "type": "git",
20 | "url": "git+https://github.com/pdehaan/11ty-2181.git"
21 | },
22 | "scripts": {
23 | "build": "eleventy",
24 | "test": "echo \"Error: no test specified\" && exit 1"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------