~xdavidwu/xdavidwu.link

d472ad96ee8de6aa3d885f8def6addc670f7af66 — David Tomaschik 6 years ago 15f3ac4
Include a default title_separator (#1701)

The current code prevented any separator being included when site.title_separator was unset.
1 files changed, 1 insertions(+), 3 deletions(-)

M _includes/seo.html
M _includes/seo.html => _includes/seo.html +1 -3
@@ 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 -%}