Merge pull request #126 from jekyll/pull/dont-mangle-text
Don't mangle text with newlines
This commit is contained in:
commit
6d133fd352
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue