filters

14 bookmarks
Custom sorting
Some of my Eleventy Filters
Some of my Eleventy Filters
In refactoring my website earlier this year, part of my process was to evaluate and revise the many, many Eleventy Filters I use throughout my website’s build, so in this post, I’ll run through a handful of them.
·chrisburnell.com·
Some of my Eleventy Filters
url Filter — Eleventy
url Filter — Eleventy
A docs page for Eleventy, a simpler static site generator.
·11ty.dev·
url Filter — Eleventy
Eleventy tag filter
Eleventy tag filter
Web development blog. The good, bad, and ugly (mostly bad and ugly)
·joesahlsa.dev·
Eleventy tag filter
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
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/)
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
11ty Second 11ty: Creating Template Filters
11ty Second 11ty: Creating Template Filters
This week, we’re going to dive into 11ty filters. We’ll use 1 built-in filter, and make 2 custom filters.
·bryanlrobinson.com·
11ty Second 11ty: Creating Template Filters
Use an Eleventy filter as an `if` statement
Use an Eleventy filter as an `if` statement
If you find yourself writing the same `if` statement multiple times, add it to `.eleventy.js` as a filter and keep a single source of truth
·michaelheap.com·
Use an Eleventy filter as an `if` statement
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