Skip to content

Commit 0a79ad5

Browse files
iBugchukycheese
authored andcommitted
Fix wrong newline concatenation in SEO description, resolves mmistakes#2354 (mmistakes#2368)
Close mmistakes#2354
1 parent 552d1d0 commit 0a79ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/seo.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
{%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
2424
{%- if seo_description -%}
25-
{%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
25+
{%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once -%}
2626
{%- endif -%}
2727

2828
{%- assign author = page.author | default: page.authors[0] | default: site.author -%}

0 commit comments

Comments
 (0)