Official 11ty docs
Filters — Eleventy
94 posts in 'Filters'
2025
Instead of a How-To, I'll write a "WhileDo" today. This is my attempt to Write Like Ron Jeffries. After I published this…
Oct 3, 2025
by Martin Hähnel (13 posts) · Website & RSS feed
Categories: BloggingCSS/SassConfigurationFiltersHow to...Social Media
Sep 25, 2025
by Keith Wagner (5 posts) · Website & RSS feed
Categories: BloggingCollectionsConfigurationFiltersNunjucks/Macros
I organise all my Eleventy filters into one file and register them as filters by iterating over them all in the configuration function.
Sep 24, 2025
by Juha-Matti Santala (21 posts) · Website & RSS feed
Categories: ConfigurationFilters
An easier approach to OG images (for me!)
Aug 23, 2025
by Jason Moser (5 posts) · Website & RSS feed
Categories: FiltersHow to...ImagesPaginationSocial Media
When I made my web site multilingual, I did it all manually. I decided to try using the built-in I18nPlugin to see if I could do it in a more standard way. Here's how it went.
Jul 21, 2025
by Francis Beaudet (2 posts) · Website & RSS feed
Categories: FiltersHow to...InternationalizationNavigationPlugins
Software engineering leader and occasional side project hacker.
Jul 12, 2025
by Brian Cantoni (6 posts) · Website & RSS feed
Categories: BloggingDatesDeploymentFiltersImagesMigrating to EleventyPerformancePermalinksSearch
Software engineering leader and occasional side project hacker.
Jul 10, 2025
by Brian Cantoni (6 posts) · Website & RSS feed
Categories: ConfigurationFiltersHow to...
Replacing an imported dependency with vanilla javascript
Jun 2, 2025
by Thomas Rigby (8 posts) · Website & RSS feed
Categories: DatesFiltersNunjucks/Macros
One of the features that I’m quite happy about on my new website is the built-in search functionality and how the search index gets built for it. You can test it out yourself by pressing...
May 25, 2025
There’s a new kid on the templating block.
Apr 26, 2025
by Christopher Kirk-Nielsen (14 posts) · Website & RSS feed
Categories: ConfigurationFiltersHow to...MarkdownNunjucks/MacrosPluginsVento
My RSS feeds are generated by [11ty](https://www.11ty.dev) at build time from a [Liquid.js](https://liquidjs.com) template. When I wrote posts and link elsewhere on my site I use a bookmarklet to capture the URI for linking. To ensure I have absolute URLs in my feeds, I use a filter to convert said
Mar 5, 2025
by Cory Dransfeldt (46 posts) · Website & RSS feed
Categories: FiltersGlobal DataHow to...RSS
Building a personal digital music library with Eleventy and APIs
Feb 25, 2025
by Damian Walsh (3 posts) · Website & RSS feed
Categories: CollectionsData CascadeFiltersGlobal DataImagesPaginationRemote Data
Migrating from my old Jekyll site to Eleventy meant two things, I lost a lot of out-of-the-box helpers, but at the same time gained the flexibility to extend any part of my site build pipeline via JavaScript.
Feb 14, 2025
by Jeremias Menichelli (1 post) · Website & RSS feed
Categories: ConfigurationFiltersHow to...Markdown
Various tricks I've stumbled into.
Feb 11, 2025
by Jay Hannah (2 posts) · Website & RSS feed
Categories: BloggingFiltersHow to...ImagesSocial Media
I presented at the 11ty Meetup on how I built my Books page. Here's the video and a link to a PDF of the slides.
Feb 6, 2025
by Bob Monsour (20 posts) · Website & RSS feed
Categories: Books PagesFiltersGlobal DataYouTube
In this post I tackle something from my post-MVW (Minimum Viable Website) functionality to do list, by adding a plaintext RSS Feed. I'll take you through my reasons for adding it, the implementation, and the code I used to create it.
Jan 29, 2025
by Matt Hobbs (7 posts) · Website & RSS feed
Categories: AccessibilityBloggingConfigurationFiltersHow to...RSS
I was inspired to create permanently unique entry IDs for my RSS feed after reading a post by Evan Sheehan.
Jan 27, 2025
I'm from Finland, so I want to have Nordic slugs for my sites.
Jan 12, 2025
2024
At last, I've gotten around to implementing image galleries.
Dec 2, 2024
by Nathan Upchurch (3 posts) · Website & RSS feed
Categories: CollectionsFiltersImage GalleriesLayoutsPagination
Nov 21, 2024
by Harris Lapiroff (6 posts) · Website & RSS feed
Categories: CSS/SassDatesFiltersPaginationPermalinksUpgrading
How I added my recipes to my blog posts with cooklang and the recipe schema
Nov 7, 2024
by Robb Knight (20 posts) · Website & RSS feed
Categories: CollectionsData CascadeFiltersFront MatterHow to...Layouts
The personal blog of Thomas Steiner
Nov 2, 2024
by Thomas Steiner (1 post) · Website & RSS feed
Categories: BloggingCollectionsDatesFiltersHow to...Pagination
I recently felt like getting back into blogging. But setting up and maintaining WordPress felt like more than I was looking for. I was looking for something much simpler. Preferably file-based and with Markdown support. That was my introduction to Eleventy.
Oct 19, 2024
by Sebin Nyshkim (3 posts) · Website & RSS feed
Categories: BloggingCSS/SassCollectionsConfigurationData CascadeFiltersGetting StartedGlobal DataLayoutsMarkdownNavigationPaginationPluginsShortcodes
I love how in Eleventy, you can build a site step-by-step and at each small step, have a functional website. In this post, I describe a workshop structure I’ve used lately to teach a few of my friends how to build a static site with Eleventy.
Oct 6, 2024
by Juha-Matti Santala (21 posts) · Website & RSS feed
Categories: BloggingConfigurationFiltersGetting StartedHow to...Plugins
CAUTION
The posts below were published before the release of Eleventy v3.0.0 (Oct 1, 2024). Information in these posts may be out of date. The current stable release is 3.12.
I've been tinkering with a new Eleventy project and decided to fire it up using the 3 beta version.
Sep 24, 2024
by Trevor Morris (8 posts) · Website & RSS feed
Categories: CollectionsFiltersHow to...Pagination
Exclude specific tags in Eleventy using a custom filter to display related tags on a blog post without certain tags. Learn how to implement the 'exclude' and 'limit' filters in Eleventy for tag display.
Sep 21, 2024
by Christian Fei (1 post) · Website & RSS feed
Categories: CollectionsFiltersHow to...
After organising Eleventy filters, shortcodes etc I had an idea to tidy the code even more and make it dynamic. I wanted to automatically import any new functions that were added, including new when using files.
Aug 28, 2024
by Trevor Morris (8 posts) · Website & RSS feed
Categories: CollectionsConfigurationFiltersHow to...Shortcodes
If you're building up a custom Eleventy collection using addCollection, you may need to use existing filters to create the desired data.
Aug 26, 2024
by Trevor Morris (8 posts) · Website & RSS feed
Categories: CollectionsFiltersHow to...
I work a lot with the Laravel framework, which scaffolds much of your initial setup and has conventions for where code should be stored. Starting a brand new Eleventy project from scratch doesn't give you this boilerplate and means you have to make decisions about where everything lives.
Aug 22, 2024
by Trevor Morris (8 posts) · Website & RSS feed
Categories: ConfigurationFiltersHow to...Shortcodes
When working with dates in JavaScript, you probably reach for a library to help you parse, manipulate and display the values. For a recent Eleventy project, I used Luxon – the successor to the popular JavaScript date/time library Moment.js.
Aug 20, 2024
Sometimes it makes sense to write a unique excerpt. But sometimes the beginning of the page content works well enough, which is why many…
Aug 9, 2024
by Tyler Sticka (3 posts) · Website & RSS feed
Categories: FiltersGlobal DataHow to...MarkdownPlugins
At the moment my site has [6 different feeds](/feeds). 5 RSS feeds, an ICS feeds and JSON versions of the 5 RSS feeds. I was asked how they're put together and, well, it's a bit involved.
Aug 9, 2024
I recently started using umami.is for website analytics, and figured I could use the API to output some stats about my blog
Jul 10, 2024
by Lewis Dale (5 posts) · Website & RSS feed
Categories: FiltersHow to...Remote Data
How I'm fetching trophy and achievements to show on my game collection
Jul 7, 2024
by Robb Knight (20 posts) · Website & RSS feed
Categories: FiltersHow to...Remote Data
Lists are wonderful, and filters make them better. This article is about building a custom filter for Eleventy collections.
Jul 1, 2024
by Tom Doe (11 posts) · Website & RSS feed
Categories: CollectionsFiltersHow to...Search
I upgraded to 11ty v3 and proceeded to debug.
Jun 28, 2024
by Bob Monsour (20 posts) · Website & RSS feed
Categories: ConfigurationFiltersUpgrading
Saving links to Omnivore and using labels to display those as bookmarks on my website
Jun 25, 2024
by Clayton Errington (18 posts) · Website & RSS feed
Categories: FiltersHow to...Remote Data
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.
May 18, 2024
I made a custom collection with a filter to sort events by their custom date data.
May 9, 2024
by Sami Määttä (6 posts) · Website
Categories: CollectionsDatesFiltersFront MatterNunjucks/Macros
Apr 4, 2024
by Dan Urbanoicz (1 post) · Website
Categories: Front MatterHow to...FiltersCollections
Everybody seems to implement their own way of generating post excerpts in Eleventy, and here's mine.
Mar 15, 2024
I made some lightweight design changes to my site, keeping things simple but moving the date up above post headers, surfacing tags below and restoring `Read more` links.
Mar 9, 2024
by Cory Dransfeldt (46 posts) · Website & RSS feed
Categories: CollectionsFiltersHow to...
I demonstrate how to make MathML equations using LaTeX markup with TeXZilla.
Mar 1, 2024
Short and quick tutorial on how to embed custom HTML content between post paragraphs on an Eleventy site.
Feb 23, 2024
by Łukasz Wójcik (2 posts) · Website & RSS feed
Categories: ConfigurationFiltersHow to...
I decided to take on some overdue refactoring of the 11tybundle.dev site. Here's what I did.
Feb 20, 2024
by Bob Monsour (20 posts) · Website & RSS feed
Categories: FiltersHow to...Nunjucks/MacrosShortcodes
Eleventy now support automatic transforms from local paths to output URLs right out of the box.
Feb 14, 2024
We will populate a page with data from GitHub. We will use the eleventy-fetch plugin to do this with minimal code and refresh the data every 2 days.
Feb 7, 2024
by Rob O'Leary (12 posts) · Website & RSS feed
Categories: FiltersGlobal DataLayoutsRemote Data
ZOMG my first 11ty filter!
Jan 31, 2024
I've reduced the build time for the 11ty Bundle site from 30 seconds to 10 seconds. Here's how.
Jan 31, 2024
by Bob Monsour (20 posts) · Website & RSS feed
Categories: FiltersHow to...Performance
With Eleventy’s data files, I’ve come up with a good setup to build landing pages for communities that organize events.
Jan 24, 2024
by Juha-Matti Santala (21 posts) · Website & RSS feed
Categories: Data CascadeFiltersGlobal DataHow to...
Jan 22, 2024
by Sophie Koonin (5 posts) · Website & RSS feed
Categories: DatesFiltersHow to...MarkdownRemote Data
I had told myself that I wouldn't do this...but, seeing them on other people's sites changed my mind.
Jan 13, 2024
by Bob Monsour (20 posts) · Website & RSS feed
Categories: FiltersGlobal DataHow to...Social MediaWebmentions
2023
How to add a changelog to your 11ty pages based on commits made to your site's git repository.
Dec 19, 2023
by James Doc (3 posts) · Website & RSS feed
Categories: Data CascadeDatesFilters
Autogenerating image previews with Eleventy filter functions and node-canvas
Dec 17, 2023
by nonnullish (3 posts) · Website & RSS feed
Categories: FiltersHow to...ImagesSocial Media
A blog about web development, handy tutorials, quick rants, thoughts, and everything in between.
Nov 26, 2023
by Ginger (7 posts) · Website & RSS feed
Group by year in a clear and readable manner.
Nov 24, 2023
by Christopher Kirk-Nielsen (14 posts) · Website & RSS feed
Categories: CollectionsDatesFiltersHow to...Nunjucks/Macros
How I'm using the Fathom API to show a list of popular blogs posts in my Eleventy site
Nov 23, 2023
by Robb Knight (20 posts) · Website & RSS feed
Categories: AnalyticsData CascadeFiltersHow to...Remote Data
Tag clouds are a good way of seeing what kind of posts are floating around in your blog, lets bring them back
Nov 16, 2023
by Ginger (7 posts) · Website & RSS feed
I noticed recently that the site's stats page displayed the first and last post dates with time information even though the values only contained dates. I created a simple Eleventy Filter to trim them to date only with the format I wanted. This post shows how I did it.
Oct 31, 2023
Feedbin is removing the wrong elements, so let's make up for it on our own
Oct 31, 2023
by Ginger (7 posts) · Website & RSS feed
For a small Eleventy-based project, I wanted to output an example.json file – stored in the data folder – in a Nunjucks template. If you simply output the variable example, you'll see the unhelpful [object Object] text.
Sep 29, 2023
During my recent blog migrations, I discovered the new slugify filter handles apostrophes differently. I'd prefer they were dropped. Here are the steps.
Sep 27, 2023
Now I have a few posts, it would be good to have some way to narrow them down when looking for something specific.
Sep 9, 2023
by Thomas Rigby (8 posts) · Website & RSS feed
Categories: FiltersHow to...Nunjucks/Macros
A series on doing more with your Jamstack site's front matter
Aug 28, 2023
by Raymond Camden (104 posts) · Website & RSS feed
Categories: Front MatterFiltersHow to...
This is a second spinoff post in the migration saga of this blog from WordPress to 11ty. On good URLs It was important to me to have good, RESTful, usable, hackable URLs. While a lot of that is easy and comes for free, following this principle with Eleventy proved quite hard: URLs that are “hackable
Jul 19, 2023
by Lea Verou (4 posts) · Website & RSS feed
Categories: PaginationCollectionsFiltersDates
How to add parameters to an Eleventy filter.
Jul 5, 2023
Web development blog. The good, bad, and ugly (mostly bad and ugly)
Jun 16, 2023
by Joe Sahlsa (4 posts) · Website
Categories: Filters
Web development blog. The good, bad, and ugly (mostly bad and ugly)
Jun 15, 2023
Blog and general digital garden of the full stack programmer Simon Dann.
Mar 14, 2023
by Simon Dann (11 posts) · Website & RSS feed
JavaScript software development tips, strategies for salary negotiation, and other helpful advice for navigating software as a career.
Feb 21, 2023
by Jordan Kohl (8 posts) · Website
Categories: FiltersCollectionsHow to...
CAUTION
The posts below were published before the release of Eleventy v2.0.0 (Feb 8, 2023). Information in these posts may be out of date. The current stable release is 3.12.
Blog and general digital garden of the full stack programmer Simon Dann.
Jan 20, 2023
by Simon Dann (11 posts) · Website & RSS feed
Eleventy Computed Data makes it easy to reuse your filters outside of your templates.
Jan 16, 2023
by Chris Coleman (2 posts) · Website
Categories: ConfigurationData CascadeFilters
2022
Blog and general digital garden of the full stack programmer Simon Dann.
Sep 14, 2022
by Simon Dann (11 posts) · Website & RSS feed
Categories: FiltersHow to...PaginationSocial Media
This week, we’re going to dive into 11ty filters. We’ll use 1 built-in filter, and make 2 custom filters.
Aug 15, 2022
Extend Eleventy’s built-in filters with custom logic for these common use cases.
May 15, 2022
Different choices that go into building an Eleventy website from scratch.
Mar 8, 2022
by Sami Määttä (6 posts) · Website
Categories: CSS/SassDatesDeploymentFiltersHow to...NavigationPaginationSocial Media
2021
CAUTION
The posts below were published before the release of Eleventy v1.0.0 (Jan 9, 2022). Information in these posts may be out of date. The current stable release is 3.12.
Replace characters that are often stripped out of post titles by RSS readers and social network link embeds
Aug 8, 2021
by Stephanie Eckles (21 posts) · Website & RSS feed
Categories: How to...Social MediaFiltersRSS
I built my first ever serverless feature to add tag filtering to my blog listing. Here's how I integrated that to my Ghost & Eleventy setup with Netlify Functions.
Jul 28, 2021
by Juha-Matti Santala (21 posts) · Website & RSS feed
Categories: FiltersHow to...ServerlessRemote Data
Jun 16, 2021
11ty filters can exist as JS functions inside the declared filters directory - these can be accessed by other files not processed by 11ty
May 17, 2021
Bernard Nijenhuis • Front-end Developer • Katwijk, The Netherlands • Father of 3 kids • Husband to 1 wife • Owner of 2 cats
May 10, 2021
by Bernard Nijenhuis (8 posts) · Website
Categories: FiltersHow to...ImagesSocial Media
Use this shortcode and filter as a starting point for your date transformation needs.
Mar 27, 2021
by Stephanie Eckles (21 posts) · Website & RSS feed
Categories: DatesHow to...FiltersShortcodes
Includes filters for creating an excerpt and other content enhancements.
Mar 24, 2021
by Stephanie Eckles (21 posts) · Website & RSS feed
Categories: Filters
Want to add an iTunes and Google friendly podcast feed to your Eleventy site? Here's how.
Feb 8, 2021
by Marc Littlemore (4 posts) · Website & RSS feed
Categories: FiltersBloggingHow to...Configuration
2020
Sometimes it’s a little confusing what the difference between shortcodes, data and filters really is, and frankly the boundaries can become a little blurred with 11ty.
Dec 8, 2020
by Mike (1 post) · Website & RSS feed
Categories: Data CascadeHow to...FiltersShortcodes
How to add a message to older content on your static site.
Nov 9, 2020
A look at adding links to random pages in Eleventy
Oct 26, 2020
by Raymond Camden (104 posts) · Website & RSS feed
Categories: How to...FiltersConfiguration
How to handle multiple authors in Eleventy, with custom author profile pages.
Aug 24, 2020
by Raymond Camden (104 posts) · Website & RSS feed
Categories: Front MatterHow to...FiltersPagination
How to use custom filters and collections to hide Eleventy content for the future.
Aug 7, 2020
by Raymond Camden (104 posts) · Website & RSS feed
Categories: How to...Front MatterFiltersCollections
Five pieces of knowledge I wish I knew before working with 11ty, the JavaScript-based static site generator. Get a jump start using this fantastic tool.
Apr 2, 2020
by Khalid Abuhakmeh (3 posts) · Website
Categories: ConfigurationData CascadeFiltersGetting Started
How to check the version of embedded template engines in Eleventy
Feb 7, 2020
by Raymond Camden (104 posts) · Website & RSS feed
Categories: How to...ConfigurationFilters
2019
This post explains how you can add scheduled publishing to your 11ty blog (with a bonus for drafts). Before I jump in though, 11ty is a surprisingly simple sys…
Jun 19, 2019
by Remy Sharp (2 posts) · Website & RSS feed
Categories: CollectionsFiltersHow to...DraftsScheduling