From a9feece9b71c1272ea0b833f7b8d6f57ae387bb3 Mon Sep 17 00:00:00 2001 From: zloylinux Date: Tue, 8 Apr 2025 19:31:39 +0700 Subject: [PATCH] refactor: improve error message when title is unset --- themes/tabi/templates/partials/title.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/tabi/templates/partials/title.html b/themes/tabi/templates/partials/title.html index 297390a..de77d73 100644 --- a/themes/tabi/templates/partials/title.html +++ b/themes/tabi/templates/partials/title.html @@ -1,4 +1,7 @@ {#- Setup -#} +{% if not config.title %} +{{ throw(message="ERROR: No `title` set in `config.toml`. tabi requires a title to function.") }} +{% endif %} {%- set prefix = config.title | safe -%} {%- set custom_separator = config.extra.separator | default(value="•") -%} {%- set separator = " " ~ custom_separator ~ " " -%}