refactor: improve error message when title is unset

This commit is contained in:
2025-04-08 19:31:39 +07:00
parent db68be7338
commit a9feece9b7

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