{% macro title(page_title, main_title) %}
    {%- if config.extra.page_titles == "combined" -%}
        {%- if page_title -%}
            {{ page_title }} | {{ main_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 %}
