Replies: 1 comment
-
Liquidjs added the configuration option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On my old Jekyll site, I used where like this:
{% assign site_posts = collections.posts | where: "tags", "featured" | sort: "last_modified_at" | reverse %}
I rewrote it to use 11ty collection instead. And the collection has plenty of content, but it returns nothing.
I also tried this:
{% assign site_posts = collections.posts | where: "data.tags", "featured" | sort: "last_modified_at" | reverse %}
And this:
{% assign site_posts = collections.posts | where: "data.page.tags", "featured" | sort: "last_modified_at" | reverse %}
But nothing is returned.
The where-filter is built into https://liquidjs.com/filters/where.html, but how can I get it to work properly in 11ty?
I crossposted here: https://discord.com/channels/741017160297611315/1304440316618870814
Beta Was this translation helpful? Give feedback.
All reactions