So I’ve just gotten going with Jekyll and Liquid setting up github pages for all my gems.
In the course of this I wanted Liquid to loop over an array, but exclude the whole block if the array is empty. Maybe there’s a good way to do this, but here’s what I did:
Basically, has_posts
will only be set if there’s something in the array.