Update main.html

This commit is contained in:
Ivan Blinkov 2020-06-22 21:27:15 +03:00 committed by GitHub
parent 3e71b6ae07
commit 1e365c28da
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 %} {% if page and page.meta and page.meta.title %}
{% set title = page.meta.title %} {% set title = page.meta.title %}
{% elif page and page.title and not page.is_homepage and page.title != 'hidden' %} {% elif page and page.title and not page.is_homepage and (not page.title.startswith('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 %} {% elif page and page.title and not page.is_homepage and (not page.title.startswith('hidden-')) and page.ancestors %}
{% set title = (page.ancestors | first).title + ' | ' + config.site_name %} {% set title = (page.ancestors | first).title + ' | ' + config.site_name %}
{% else %} {% else %}
{% set title = config.site_name %} {% set title = config.site_name %}