From 53d1063c17df68d27c5aeb8538dae2a6c854816e Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 11 Jun 2018 05:17:03 -0700 Subject: [PATCH] Include a default title_separator (#1701) The current code prevented any separator being included when site.title_separator was unset. --- _includes/seo.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_includes/seo.html b/_includes/seo.html index 594a5ab5..5acd622c 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -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 -%}