Display multiple, unique ranges on the same page

Brand new with hugo, loving everything so far. I’m currently building a blog home page that has multiple ranges iterating over different types of posts (think popular, by category, rising posts etc).

Check out https://metricly.netlify.com/blog/ to see my progress so far.

It seems like it should be so simple, but how do I exclude a blog that has already been printed in a range from appearing in another. My pseudo code is something like: set $range1 := page/s printed in current array. Then excluding that variable from the rest of the arrays, and so on.

This function will be handy

@zwbetz this is perfect, and I’m not sure how I missed that- many thanks! I’ll try to follow up with working code, so others can get the benefit.