strip_newlines 去除字符串中换行符
去除字符串中的所有换行符。
输入
{% capture string_with_newlines %}
Hello
JekyllDo.cn
{% endcapture -%}
{{ string_with_newlines | strip_newlines }}
输出
HelloJekyllDo.cn
去除字符串中的所有换行符。
输入
{% capture string_with_newlines %}
Hello
JekyllDo.cn
{% endcapture -%}
{{ string_with_newlines | strip_newlines }}
输出
HelloJekyllDo.cn