Last active
February 10, 2023 19:52
-
-
Save tannerdolby/0fd575a480d0299e1d6735f462799d77 to your computer and use it in GitHub Desktop.
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More discussion based on this tweet:
Here is an implementation with comments and less ES6 usage:
as the comments introduce quite a bit of "bloat", the above code without comments looks like: