Skip to content

Commit

Permalink
Strip trailing whitespace in seo_description (mmistakes#2542)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolesen authored and jesuswasrasta committed Jul 8, 2020
1 parent e9b89cb commit e4d13da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once -%}
{%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once | strip -%}
{%- endif -%}

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

0 comments on commit e4d13da

Please sign in to comment.