Replies: 1 comment
-
|
In your first example the In your second example you are specifically setting a variable to For some reason Liquid doesn't produce an error, but if you try the same in Nunjucks it does. If your goal is to simplify your template, you could create a custom collection which returns a sorted list of future posts. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a filter
post_is_futurethat looks like this:When I attempt to use it like this:
It doesn't work -- eleventy acts like the filter isn't there. But if I write it like this:
It works just fine.
What's going on here?
Beta Was this translation helpful? Give feedback.
All reactions