♻️ refactor: improve error message when title is unset

Resolves #502
This commit is contained in:
welpo 2025-04-05 00:06:15 +02:00
parent cc39652eb5
commit a384ac80c8
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -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 ~ " " -%}