Skip to content

Commit

Permalink
Include a default title_separator (mmistakes#1701)
Browse files Browse the repository at this point in the history
The current code prevented any separator being included when site.title_separator was unset.
  • Loading branch information
Matir authored and mmistakes committed Jun 11, 2018
1 parent 33e6cf6 commit b76c2b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
{%- endif -%}
{%- assign seo_url = seo_url | default: site.github.url -%}

{% if site.title_separator %}
{% assign title_separator = site.title_separator | default: '-' | replace: '|', '|' %}
{% endif %}
{% assign title_separator = site.title_separator | default: '-' | replace: '|', '|' %}

{%- if page.title -%}
{%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
Expand Down

0 comments on commit b76c2b9

Please sign in to comment.