From 1cfce23457da70e73437d4dac7653fceac6bb4cc Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 29 Jun 2024 17:33:24 +0200 Subject: [PATCH] validate setting --- templates/tags/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/tags/list.html b/templates/tags/list.html index 91d6d85f..7b5e4682 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -9,6 +9,8 @@ {% set tag_count = terms | length %} {% if config.extra.tag_sorting == "frequency" %} {% set terms = terms | sort(attribute="pages") | reverse %} +{% elif config.extra.tag_sorting != "name" %} + {{ throw (message="Invalid tag_sorting option: " ~ config.extra.tag_sorting ~ ". Valid options are 'name' and 'frequency'.") }} {% endif %}