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 Jun 3, 2020
1 parent 1ede8c4 commit 4d16ade
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 4d16ade

Please sign in to comment.