You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when using a for..in loop with the reversed and limit attributes, it always seems to apply limit first (so I only get items "one" and "two", regardless of which order I define reversed and limit:2):
Found in [email protected] (via @11ty/eleventy@canary).
I noticed that when using a
for..in
loop with thereversed
andlimit
attributes, it always seems to applylimit
first (so I only get items "one" and "two", regardless of which order I definereversed
andlimit:2
):In this case, I expected
reversed
to get applied first solimit:2
would pluck items "five", and "four", respectively.Workaround seems to be to define "reverse" filter in the
{% assign %}
tag instead of in thefor..in
loop:The text was updated successfully, but these errors were encountered: