Is there active record type thing for jekyll?

Is there something like rails active record for jekyll?

I didn’t think much on this idea, but in my opinion could be useful when creating custom collection of posts to be displayed e.g. posts.find_all_by_color(‘red’) I am guessing tags are used for this type of tasks.