Groups
Groups
Sign in
Groups
Groups
Liquid Templates
Conversations
About
Send feedback
Help
Filter posts in Jekyll
90 views
Skip to first unread message
csbartus
unread,
May 5, 2011, 5:35:15 AM
5/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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