How to call the `handleize` liquid filter from a Jekyll plugin?

I have to disconnect from my game today because I don’t even see where the filter is handleizeeven defined. It is located in the Buy Documentation , and it works when I use it in my templates. However, I don’t see the source code for it, so I can’t find out how to call it from my plugin.

Also note that while these two questions are similar, the answers are not used because handleizenot detected in any of these source modules.

If that matters, I use Jekyll 2.1.1 and Liquid 2.6.1.

+3
source share
3 answers

OK, it turns out that the Shopify documentation is incorrect; Some of the documented filters, including handleize, are not available from a standard Jekyll installation. The core Jekyll team is aware of documentation issues and is working to resolve them.

Also note that when using an unknown filter, the liquid does not indicate any errors or warnings. Therefore, you can (like me) think that the filter "works" when in fact it is silently ignored.

+3
source

For anyone who stumbles upon this, from Jekyll version 2.4.0 onward , you can use the built-in slugifyfilter , which basically does what it does handleize.

+5

handleize:

{{ post.title | replace: ' ', '_' }}
0

Source: https://habr.com/ru/post/1527142/


All Articles