Exclude last one content with certain params in range


Let say I have some content/post with params like this

foo: true  

I wonder how to range all my posts, no matter if the foo is true or false but exclude last one who have param foo: true

This could be a simpe range like

{{ range first 20 (where .Data.Pages.ByWeight "Type" "article") }}

but the missing piece is how to exclude…

hope someone can help me out :slightly_smiling_face:

thank you