From fe3dc232d8fa9ac65e7e5d8997a5964622111b97 Mon Sep 17 00:00:00 2001 From: David Janda Date: Wed, 21 Jun 2023 17:51:01 -0700 Subject: [PATCH] Check if page_titles exists in config.toml --- templates/macros/title.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -%}