diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8bf36e33..15251479 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@
* Remove misleading underline hover state on feature row items.
* Properly escape quotes in `site.social.name` and `site.name`. [#1485](https://github.com/mmistakes/minimal-mistakes/pull/1485)
* Fix typo in upgrading documentation. [#1487](https://github.com/mmistakes/minimal-mistakes/pull/1487)
+* Replace `|` with HTML entity when used as title separator. [#760](https://github.com/mmistakes/minimal-mistakes/issues/760)
## [4.9.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.9.0)
diff --git a/_includes/seo.html b/_includes/seo.html
index fa2be862..2ac0b649 100644
--- a/_includes/seo.html
+++ b/_includes/seo.html
@@ -4,8 +4,12 @@
{%- endif -%}
{%- assign seo_url = seo_url | default: site.github.url -%}
+{% if site.title_separator %}
+ {% assign title_separator = site.title_separator | default: '-' | replace: '|', '|' %}
+{% endif %}
+
{%- if page.title -%}
- {%- assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title -%}
+ {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
{%- endif -%}
{%- if seo_title -%}
@@ -50,7 +54,7 @@
{%- assign og_type = "website" -%}
{%- endif -%}
-
{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}
+{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}
{% if author.name %}
diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md
index 39ef7552..c38d57ae 100644
--- a/docs/_docs/18-history.md
+++ b/docs/_docs/18-history.md
@@ -4,7 +4,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar:
nav: docs
-last_modified_at: 2018-01-18T10:26:34-05:00
+last_modified_at: 2018-01-29T20:38:03-05:00
toc: true
---
@@ -32,6 +32,7 @@ toc: true
* Remove misleading underline hover state on feature row items.
* Properly escape quotes in `site.social.name` and `site.name`. [#1485](https://github.com/mmistakes/minimal-mistakes/pull/1485)
* Fix typo in upgrading documentation. [#1487](https://github.com/mmistakes/minimal-mistakes/pull/1487)
+* Replace `|` with HTML entity when used as title separator. [#760](https://github.com/mmistakes/minimal-mistakes/issues/760)
## [4.9.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.9.0)