homepage/posixlycorrect/themes/terminimal/templates/macros/title.html

18 lines
521 B
HTML
Raw Permalink Normal View History

2024-08-03 23:30:31 +02:00
{% macro title(page_title, main_title) %}
{%- if config.extra.page_titles == "combined" -%}
{%- if page_title -%}
[{{ main_title }}/{{ page_title }}]
{%- else -%}
[{{ main_title }}]
{%- endif -%}
{%- elif config.extra.page_titles == "page_only" -%}
{%- if page_title -%}
{{ page_title }}
{%- else -%}
[{{ main_title }}]
{%- endif -%}
{%- else -%}
[{{ main_title }}]
{%- endif -%}
{% endmacro title %}