From a384ac80c8e6b8be46d4a335930fba697a523af9 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 5 Apr 2025 00:06:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20improve=20erro?= =?UTF-8?q?r=20message=20when=20title=20is=20unset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves #502 --- templates/partials/title.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/partials/title.html b/templates/partials/title.html index 297390a..de77d73 100644 --- a/templates/partials/title.html +++ b/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 ~ " " -%}