2023-01-28 12:28:30 +01:00
|
|
|
{% macro title(page_title, main_title) %}
|
2023-06-22 02:51:01 +02:00
|
|
|
{%- if config.extra.page_titles and config.extra.page_titles == "combined" -%}
|
2023-01-28 12:28:30 +01:00
|
|
|
{%- if page_title -%}
|
|
|
|
{{ page_title }} | {{ main_title }}
|
|
|
|
{%- else -%}
|
|
|
|
{{ main_title }}
|
|
|
|
{%- endif -%}
|
2023-06-22 02:51:01 +02:00
|
|
|
{%- elif config.extra.page_titles and config.extra.page_titles == "page_only" -%}
|
2023-01-28 12:28:30 +01:00
|
|
|
{%- if page_title -%}
|
|
|
|
{{ page_title }}
|
|
|
|
{%- else -%}
|
|
|
|
{{ main_title }}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- else -%}
|
|
|
|
{{ main_title }}
|
|
|
|
{%- endif -%}
|
|
|
|
{% endmacro title %}
|