eleventy
eleventy copied to clipboard
A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
I have 56 json files in a `_data/languages` subfolder – one for each language – labelled 'english.json', 'arabic.json' etc. In each json file is an array of objects structured like...
I have a single page that needs to have it's contents pulled from an external source. The environment is a site that describes a service. - 90% of the content...
I want to replicate the header from my site in eleventy: https://nikitavoloboev.xyz It looks like: In my navigation.njk I have this line `{{ nav.data.navtitle }}` This expands over all the...
I write to understand how to make Eleventy site smarter so that each post number is defined automatically. So far I assign post number manually like this: collection in ```.eleventy.js```:...
I'm using `eleventy --serve` (from the official blog example) which gives a really nice dev workflow for most files. Except when updating `eleventy.js`. For example when developing shortcodes or custom...
Hello, I have a general question regarding the [data](https://www.11ty.dev/docs/data/). Currently, if you want to make data available to the template, you can make its file name match the template you...
Hello, Develop a simple website with several contacts. The data for generate the page is a single data JSON-file (contacts.json) Example snippet: ``` [ { "id": "1", "service": "Brandweer/Ambulance", "contact":...
I have a collection fetched from database, resulting in a list of objects: ``` [ { alias: 'a', groupid: 2 }, { alias: 'b', groupid: 3 }, { alias: 'c',...
Hi, thank you for this wonderful tool. I have a question on whether I can have a selective block appearing on only 1 part of the layout. Specifically, I have...
The subject says it all. How can one pass data from the page to the base layout? It seems like there are a couple of issues open/closed talking about this...