├── .gitignore ├── source ├── _data │ ├── site.json │ └── categorias │ │ ├── gramatica │ │ └── descricao.json │ │ ├── pronuncia │ │ └── descricao.json │ │ └── vocabulario │ │ └── descricao.json ├── _includes │ └── layouts │ │ └── pagina.liquid └── index.md ├── public └── categorias │ ├── gramatica │ └── index.html │ ├── pronuncia │ └── index.html │ └── vocabulario │ └── index.html ├── .eleventy.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /source/_data/site.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my site", 3 | "title": "Site Title" 4 | } 5 | -------------------------------------------------------------------------------- /source/_includes/layouts/pagina.liquid: -------------------------------------------------------------------------------- 1 | 2 |
3 |

{{ site.name }}: {{ site.title }}

4 |
{{ content}}
5 |
-------------------------------------------------------------------------------- /source/_data/categorias/gramatica/descricao.json: -------------------------------------------------------------------------------- 1 | { 2 | "portugues": "Esta é a descrição da categoria gramatica em portugues.", 3 | "ingles": "This is the grammer category description in English." 4 | } 5 | -------------------------------------------------------------------------------- /source/_data/categorias/pronuncia/descricao.json: -------------------------------------------------------------------------------- 1 | { 2 | "portugues": "Esta é a descrição da categoria pronuncia em portugues.", 3 | "ingles": "This is the pronunciation category description in English." 4 | } 5 | -------------------------------------------------------------------------------- /source/_data/categorias/vocabulario/descricao.json: -------------------------------------------------------------------------------- 1 | { 2 | "portugues": "Esta é a descrição da categoria vocabulario em portugues.", 3 | "ingles": "This is the vocabulary category description in English." 4 | } 5 | -------------------------------------------------------------------------------- /public/categorias/gramatica/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

my site: Site Title

4 |
5 |
6 |

This is the grammer category description in English.

7 |
8 |

Artigos na categoria "gramatica"

9 |
10 |
11 | -------------------------------------------------------------------------------- /public/categorias/pronuncia/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

my site: Site Title

4 |
5 |
6 |

This is the pronunciation category description in English.

7 |
8 |

Artigos na categoria "pronuncia"

9 |
10 |
11 | -------------------------------------------------------------------------------- /public/categorias/vocabulario/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |

my site: Site Title

4 |
5 |
6 |

This is the vocabulary category description in English.

7 |
8 |

Artigos na categoria "vocabulario"

9 |
10 |
11 | -------------------------------------------------------------------------------- /.eleventy.js: -------------------------------------------------------------------------------- 1 | module.exports = function (eleventyConfig) { 2 | eleventyConfig.addCollection("categorias", function (collectionApi) { 3 | return ["gramatica", "pronuncia", "vocabulario"]; 4 | }); 5 | 6 | return { 7 | dir: { 8 | input: "source", 9 | output: "public", 10 | }, 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /source/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | pagination: 3 | data: collections.categorias 4 | size: 1 5 | alias: categoria 6 | permalink: "/categorias/{{ categoria | slug }}/" 7 | layout: layouts/pagina.liquid 8 | --- 9 | 10 |
11 |

{{ categorias[ categoria ].descricao.ingles }}

12 |
13 | 14 |

Artigos na categoria "{{ categoria }}"

15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "11ty-2321", 3 | "description": "", 4 | "version": "1.0.0", 5 | "author": "Peter deHaan ", 6 | "bugs": { 7 | "url": "https://github.com/pdehaan/11ty-2321/issues" 8 | }, 9 | "devDependencies": { 10 | "@11ty/eleventy": "^1.0.0" 11 | }, 12 | "homepage": "https://github.com/pdehaan/11ty-2321#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-2321.git" 19 | }, 20 | "scripts": { 21 | "build": "eleventy", 22 | "test": "echo \"Error: no test specified\" && exit 1" 23 | } 24 | } 25 | --------------------------------------------------------------------------------