diff --git a/templates/macros/title.html b/templates/macros/title.html index a8575de..0ed12ca 100644 --- a/templates/macros/title.html +++ b/templates/macros/title.html @@ -1,11 +1,11 @@ {% macro title(page_title, main_title) %} - {%- if config.extra.page_titles == "combined" -%} + {%- if config.extra.page_titles and config.extra.page_titles == "combined" -%} {%- if page_title -%} {{ page_title }} | {{ main_title }} {%- else -%} {{ main_title }} {%- endif -%} - {%- elif config.extra.page_titles == "page_only" -%} + {%- elif config.extra.page_titles and config.extra.page_titles == "page_only" -%} {%- if page_title -%} {{ page_title }} {%- else -%}