Skip to content

remove_first

Removes the first occurrence of a substring. (standard Liquid filter.)

Example

{{ "a-b-c" | remove_first: "-" }}

Output:

ab-c