mirror of
https://github.com/welpo/tabi.git
synced 2025-12-15 04:08:43 +01:00
validate setting
This commit is contained in:
parent
c685b95f9e
commit
1cfce23457
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
||||||
{% set tag_count = terms | length %}
|
{% set tag_count = terms | length %}
|
||||||
{% if config.extra.tag_sorting == "frequency" %}
|
{% if config.extra.tag_sorting == "frequency" %}
|
||||||
{% set terms = terms | sort(attribute="pages") | reverse %}
|
{% 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 %}
|
{% endif %}
|
||||||
<div id="tag-cloud" class="{% if tag_count > 16 %}three-columns{% elif tag_count > 8 %}two-columns{% endif %}">
|
<div id="tag-cloud" class="{% if tag_count > 16 %}three-columns{% elif tag_count > 8 %}two-columns{% endif %}">
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue