prepend - Liquid Filter Reference - 0.11.4
Filter Name | prepend |
Group | Text |
Version | 0.11.4 |
Description
Adds the specified string to the beginning of another string.
Examples
{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}
Some fruit: apples, oranges, and bananas
prepend
can also accept a variable as its argument:
{% assign url = "example.com" %}
{{ "/index.html" | prepend: url }}
example.com/index.html
Back to Liquid Reference for 0.11.4
Back to Documentation