[docs] tune titles

This commit is contained in:
Ivan Blinkov 2020-05-22 14:16:24 +03:00 committed by GitHub
parent b82c633716
commit 3845809d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,9 @@
{% if page and page.meta and page.meta.title %}
{% set title = page.meta.title %}
{% elif page and page.title and not page.is_homepage and page.title != 'hidden' %}
{% set title = page.title + ' - ' + config.site_name %}
{% set title = page.title + ' | ' + config.site_name %}
{% elif page and page.title and not page.is_homepage and page.title == 'hidden' and page.ancestors %}
{% set title = (page.ancestors | first).title + ' - ' + config.site_name %}
{% set title = (page.ancestors | first).title + ' | ' + config.site_name %}
{% else %}
{% set title = config.site_name %}
{% endif %}