append

指定した文字列を別の文字列の末尾に追加します。

入力

{{ "/my/fancy/url" | append: ".html" }}

出力

/my/fancy/url.html

appendは引数として変数も受け付けます。

入力

{% assign filename = "/index.html" %}
{{ "website.com" | append: filename }}

出力


website.com/index.html