prepend
Adds the specified string to the beginning of another string.
Input
{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}Output
Some fruit: apples, oranges, and bananasprepend can also accept a variable as its argument.
Input
{% assign url = "example.com" %}
{{ "/index.html" | prepend: url }}Output
example.com/index.htmlLast updated