prepend - Liquid Filter Reference - 0.11.6
Filter Name | prepend |
Group | Text |
Version | 0.11.6 |
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.6
Back to Documentation