Filter posts in Jekyll

90 views
Skip to first unread message

csbartus

unread,
May 5, 2011, 5:35:15 AM5/5/11
to Liquid Templates
Ahoy,

I'm trying to filter posts with Jekyll. Something like:

{% for work in site.categories.works year: 2011 %}

which would fetch posts from 2011.
I've added a new filter in "_plugins/liquid_extensions.rb" but it is
totally ignored.

module YearFilter
def year(input, year)
[]
end
end
Liquid::Template.register_filter(YearFilter)

Any help would be very appreciated. Thanks!
Reply all
Reply to author
Forward
0 new messages