Don't mangle text with newlines

Fixes #117
This commit is contained in:
Pat Hawks 2016-10-19 19:04:42 -05:00 committed by GitHub
parent 39c2e06232
commit d7a67b563f
1 changed files with 5 additions and 5 deletions

View File

@ -30,24 +30,24 @@
{% assign seo_name = seo_site_title %}
{% endif %}
{% if seo_name %}
{% assign seo_name = seo_name | smartify | strip_html | strip_newlines | escape_once %}
{% assign seo_name = seo_name | smartify | strip_html | normalize_whitespace | escape_once %}
{% endif %}
{% if seo_title %}
{% assign seo_title = seo_title | smartify | strip_html | strip_newlines | escape_once %}
{% assign seo_title = seo_title | smartify | strip_html | normalize_whitespace | escape_once %}
{% endif %}
{% if seo_site_title %}
{% assign seo_site_title = seo_site_title | smartify | strip_html | strip_newlines | escape_once %}
{% assign seo_site_title = seo_site_title | smartify | strip_html | normalize_whitespace | escape_once %}
{% endif %}
{% if seo_page_title %}
{% assign seo_page_title = seo_page_title | smartify | strip_html | strip_newlines | escape_once %}
{% assign seo_page_title = seo_page_title | smartify | strip_html | normalize_whitespace | escape_once %}
{% endif %}
{% 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 | normalize_whitespace | escape_once %}
{% endif %}
{% assign seo_author = page.author | default: page.authors[0] | default: site.author %}