prepend
將指定的字串加到另一個字串的開頭。
輸入
{{ "apples, oranges, and bananas" | prepend: "Some fruit: " }}
輸出
Some fruit: apples, oranges, and bananas
prepend
也可以接受變數作為它的參數。
輸入
{% assign url = "example.com" %}
{{ "/index.html" | prepend: url }}
輸出
example.com/index.html