From ff5cc42107db7f547cd9eb42a0ea02212340bcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?iBug=20=E2=99=A6?= Date: Wed, 15 Jan 2020 01:40:11 +0800 Subject: [PATCH] Fix wrong newline concatenation in SEO description, resolves #2354 (#2368) Close #2354 --- _includes/seo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/seo.html b/_includes/seo.html index 4d508fa0730d..cb6e36ef47c2 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -22,7 +22,7 @@ {%- assign seo_description = page.description | default: page.excerpt | default: site.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: '
', ' ' | escape_once -%} {%- endif -%} {%- assign author = page.author | default: page.authors[0] | default: site.author -%}