Sorting collections in 11ty
Unproofread notes
I needed to sort my projects page as per the title, and didn't want to create a custom filter in the .eleventy.js file. So I tried Liquid sort filter like | sort: "title" but it didn't work. But then I found this after spending almost an hour searching:
| sort(attribute='title')
I have a projects.njk file where I am using this, and it works flawlessly.
- ← Previous
Redirect subdomain to a URL in Cloudflare - Next →
PDF runs AI
Comment via email