prepend
Adds the specified string to the beginning of another string.
输入
{{ "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