How to add a helper?

Hi all,

I’d like to extend Jekyll, so I could write {% for item in my_custom_collection %} but I was wondering: Would that be a liquid tag? Or a filter? Or something like a Rails helper? How do I package code like that? Regards


Yes You Can Use All Liquide Filter In Jekyll, For Example

{{ page.content | number_of_words }}

{{ site.posts | sort: "author" }}
{{ product.title | upcase }}
{{ product.title | remove: "Awesome" }}

You Can Get Details Here,

Thx Rubel, I’m aware of that. I’d like to add some custom code that I can use in a for loop. Question is: Would that be a Liquid filter, or a Liquid tag, or something completely different?