forked from deepStateMirrors/tabi
✨ feat(tags): dynamically adjust tag list columns based on tag count (#233)
This commit is contained in:
parent
d257e022ea
commit
9fc45f288d
2 changed files with 32 additions and 3 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
{{ macros_page_header::page_header(title=title)}}
|
||||
|
||||
<div class="tag-cloud">
|
||||
{% set tag_count = terms | length %}
|
||||
<div id="tag-cloud" class="{% if tag_count > 16 %}three-columns{% elif tag_count > 8 %}two-columns{% endif %}">
|
||||
<ul class="tags">
|
||||
{%- for term in terms -%}
|
||||
<li class="tags-item">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue