prepend将字符串添加到开头
ZKEASOFT August 28, 2018
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