📜  在 jekyll 中去除换行符 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:10.707000             🧑  作者: Mango

代码示例1
{% assign description = page.excerpt | newline_to_br | strip_newlines | replace: '
', ' ' | strip_html | strip | truncatewords: 30 %} Replace newlines with br tag, then strip newlines, and then replace
with space. Strip html and truncate for usage in meta description.