add title ender

This commit is contained in:
OniriCorpe 2024-06-21 00:17:07 +02:00
parent b574edd5c7
commit 33bbf4c775
4 changed files with 11 additions and 4 deletions

View file

@ -7,8 +7,13 @@
{% set title = page.title %}
{% elif section.title %}
{% set title = section.title %}
{% elif config.title %}
{% set title = config.title %}
{% endif %}
{% if config.title %}
{% if title %}
{% set title = title ~ " - " ~ config.title %}
{% else %}
{% set title = config.title %}
{% endif %}
{% endif %}
{% if page.extra.author %}
{% set author = page.extra.author %}