A new Siteleaf is here, upgrade to v2 →



Filters and tags

Siteleaf v1 Docs » Theme Documentation » Filters and tags

Siteleaf supports all Standard Liquid Filters and Liquid Tags.

Siteleaf is also compatible with Jekyll Liquid Filters.

In addition, Siteleaf adds the following custom filters:

Filter Description Example
fallback Provide a default value if variable is blank. {{title | fallback:“Untitled”}}
json Formats content as JSON (JavaScript Object Notation) {{site.posts | json}}
markdown Converts Markdown to HTML, use true to apply Smartypants. {{title | markdown:true}}
smartypants Applies Smartypants (smart quotes, em/en dashes, etc). {{title | smartypants}}
slug Converts a string to its URL-friendly, slug form. {{meta.custom_field | slug}}