Every Liquid filter a Sooquna theme can use, by category.
| Name |
Summary |
append |
Adds a string to the end. |
capitalize |
Upper-cases the first character, lower-cases the rest. |
default |
A fallback for nil, false or empty values. |
downcase |
Lower-cases a string. |
inspect |
Shows a value as JSON-like text, for debugging. |
lstrip |
Removes whitespace at the start. |
prepend |
Adds a string to the start. |
remove |
Removes every occurrence of a string. |
remove_first |
Removes the first occurrence of a string. |
remove_last |
Removes the last occurrence of a string. |
replace |
Replaces every occurrence of a string. |
replace_first |
Replaces the first occurrence of a string. |
replace_last |
Replaces the last occurrence of a string. |
rstrip |
Removes whitespace at the end. |
size |
Number of characters in a string or items in an array. |
slice |
Part of a string or array, from an index and a length. |
split |
Splits a string into an array. |
strip |
Removes whitespace at both ends. |
strip_newlines |
Removes line breaks. |
truncate |
Shortens a string to a number of characters. |
truncatewords |
Shortens a string to a number of words. |
type |
The type of a value (string, int, array…), for debugging. |
upcase |
Upper-cases a string. |
| Name |
Summary |
abs |
Absolute value. |
at_least |
Limits a number to a minimum. |
at_most |
Limits a number to a maximum. |
ceil |
Rounds up to an integer. |
divided_by |
Divides by a number. |
floor |
Rounds down to an integer. |
minus |
Subtracts a number. |
modulo |
Remainder of a division. |
plus |
Adds a number. |
round |
Rounds to a number of decimals (default 0). |
times |
Multiplies by a number. |
| Name |
Summary |
compact |
Removes nil items. |
concat |
Joins two arrays. |
first |
First item of an array. |
join |
Joins array items with a separator (default a space). |
last |
Last item of an array. |
map |
Takes one property from every item. |
reverse |
Reverses an array. |
sort |
Sorts an array, case-sensitively; by a property when given. |
sort_natural |
Sorts an array case-insensitively; by a property when given. |
sum |
Adds up numbers in an array, or a property of its items. |
uniq |
Removes duplicate items. |
where |
Items whose property equals a value (or is truthy, without a value). |
| Name |
Summary |
image_tag |
A responsive <img> with srcset, width, height and lazy loading. |
image_url |
URL of an image at a size, served as WebP from the CDN. |
img_tag (deprecated) |
A plain lazy <img> tag (older form). |
img_url (deprecated) |
Image URL at a size (‘400x’, ‘400x300’, ‘master’). |
product_img_url (deprecated) |
Product image URL at a size (older form). |
| Name |
Summary |
date |
Formats a date in the store’s time zone. |
| Name |
Summary |
font_face |
@font-face rule for a font setting (compatibility). |
font_modify |
A font setting at another weight or style (compatibility). |
font_url |
URL of a font file (compatibility). |
| Name |
Summary |
pluralize |
Picks a singular or plural word for a count (English-style). |
t |
A translation from the theme’s locale files. |
| Name |
Summary |
json |
A value as JSON. |
weight_with_unit |
A weight in grams, shown in kg (default), g, lb or oz. |
| Name |
Summary |
md5 |
MD5 hash (hex). |
sha1 |
SHA-1 hash (hex). |
sha256 |
SHA-256 hash (hex). |