prepend

prepend用于将指定的字符串添加到另一个字符串的开头。

输入

{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}

输出

Some fruit: apples, oranges, and bananas

输入

{% assign url = "liquidmarkup.com" %}

{{ "/index.html" | prepend: url }}

输出

liquidmarkup.com/index.html