├── .gitignore ├── www ├── style.vars.css ├── style.css └── index.html ├── src ├── _data │ └── site.json ├── style.scss ├── style.vars.njk └── index.njk ├── package.json └── .eleventy.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /www/style.vars.css: -------------------------------------------------------------------------------- 1 | 2 | :root { 3 | --text-color: salmon; 4 | } 5 | -------------------------------------------------------------------------------- /src/_data/site.json: -------------------------------------------------------------------------------- 1 | { 2 | "custom": { 3 | "text_color": "salmon" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /www/style.css: -------------------------------------------------------------------------------- 1 | @import url("style.vars.css"); 2 | body { 3 | color: var(--text-color); 4 | } -------------------------------------------------------------------------------- /src/style.scss: -------------------------------------------------------------------------------- 1 | @import url("style.vars.css"); 2 | 3 | body { 4 | color: var(--text-color); 5 | } 6 | -------------------------------------------------------------------------------- /src/style.vars.njk: -------------------------------------------------------------------------------- 1 | --- 2 | permalink: style.vars.css 3 | --- 4 | 5 | :root { 6 | --text-color: {{ site.custom.text_color }}; 7 | } 8 | -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |Lorem Ipsum… 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/index.njk: -------------------------------------------------------------------------------- 1 | --- 2 | title: Home 3 | --- 4 | 5 | 6 | 7 |
8 | {# #} 9 | 10 |Lorem Ipsum…
15 |
16 |
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "11ty-1726",
3 | "description": "",
4 | "version": "1.0.0",
5 | "author": "Peter deHaan