templating

97 bookmarks
Newest
Create a Custom Collection with Eleventy
Create a Custom Collection with Eleventy
If you've built sites using Eleventy, you're probably familiar with collections. Using the Configuration API allows for creating custom collections which can be useful to only show certain posts on your site.
·tannerdolby.com·
Create a Custom Collection with Eleventy
Generate Page Content From a Global Data File Using Eleventy
Generate Page Content From a Global Data File Using Eleventy
There are many great features to choose from when building websites with Eleventy. One feature in particular that I find very useful is the ability to iterate over a global data file and generate page content using a templating language of your choice.
·tannerdolby.com·
Generate Page Content From a Global Data File Using Eleventy
11ty filter to filter a collection (array) by key:value pair - used to filter on custom taxonomies other than tags (source: https://paulrobertlloyd.com/)
11ty filter to filter a collection (array) by key:value pair - used to filter on custom taxonomies other than tags (source: https://paulrobertlloyd.com/)
11ty filter to filter a collection (array) by key:value pair - used to filter on custom taxonomies other than tags (source: https://paulrobertlloyd.com/) - 11ty_contains.js
·gist.github.com·
11ty filter to filter a collection (array) by key:value pair - used to filter on custom taxonomies other than tags (source: https://paulrobertlloyd.com/)
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list.
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list.
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list. - sort-tags.js
·gist.github.com·
11ty filter for returning a sorted list of tags from collections. Use the it in a template like {{ collections.foo | taglist }} to get the sorted tag list.
Load file contents in Eleventy
Load file contents in Eleventy
Bernard Nijenhuis • Front-end Developer • Katwijk, The Netherlands • Father of 3 kids • Husband to 1 wife • Owner of 2 cats
·bnijenhuis.nl·
Load file contents in Eleventy
How to generate a list of all collections in 11ty
How to generate a list of all collections in 11ty
I have a simple Eleventy site v0.11.0 I'm using tag in the front matter to generate collections. Ex: --- title: Some post tags: - apple - banana - soccer --- I want to show a list each of each ...
·stackoverflow.com·
How to generate a list of all collections in 11ty
Apply a Filter to an Eleventy (11ty) Collection
Apply a Filter to an Eleventy (11ty) Collection
Filters in Eleventy (11ty) are a way to mutate data including string variables or arrays such as collections. Learn to create a filter for use on a collection which will select a random item from the collection.
·egghead.io·
Apply a Filter to an Eleventy (11ty) Collection
A Set of Useful 11ty Filters | Aleksandr Hovhannisyan
A Set of Useful 11ty Filters | Aleksandr Hovhannisyan
One of my favorite things about 11ty is its flexibility and how easily you can customize your chosen template language without having to leave the familiar comfort of the Node ecosystem.
·aleksandrhovhannisyan.com·
A Set of Useful 11ty Filters | Aleksandr Hovhannisyan