Be more explicity with title assignments

This commit is contained in:
Josh Habdas 2017-03-02 21:29:26 +08:00
parent 51db5806c2
commit 2a48f272f6
No known key found for this signature in database
GPG Key ID: BB7367EE9A70A631
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@
{% assign seo_title = page.title | default: seo_site_title %}
{% if page.title and seo_site_title %}
{% assign seo_title = seo_title | append:" | " | append: seo_site_title %}
{% assign seo_title = page.title | append:" | " | append: seo_site_title %}
{% elsif site.description and seo_site_title %}
{% assign seo_title = seo_title | append:" | " | append: site.description %}
{% assign seo_title = seo_site_title | append:" | " | append: site.description %}
{% endif %}
{% if page.seo and page.seo.name %}