Fix wrong newline concatenation in SEO description, resolves #2354 (#2368)

Close #2354
This commit is contained in:
iBug ♦ 2020-01-15 01:40:11 +08:00 committed by Michael Rose
parent b84c196178
commit c6b4cdac97

View file

@ -22,7 +22,7 @@
{%- assign seo_description = page.description | default: page.excerpt | default: site.description -%} {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
{%- if seo_description -%} {%- if seo_description -%}
{%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%} {%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once -%}
{%- endif -%} {%- endif -%}
{%- assign author = page.author | default: page.authors[0] | default: site.author -%} {%- assign author = page.author | default: page.authors[0] | default: site.author -%}