1
0
mirror of https://gitlab.com/free_zed/free_zed.gitlab.io.git synced 2024-06-01 22:02:28 +00:00
free_zed.gitlab.io/mytheme/templates/taglist_short.html
Freezed 9b41a7b681 Edit tags management
Add a template with a config var to shorten taglist in article lists
Edit article_info template for better rendering of taglist
Edit article to re-order tags
2019-01-21 14:21:54 +01:00

12 lines
313 B
HTML

{% if article.tags %}
<kbd>
{% for tag in article.tags %}
{% if loop.index < MAX_NB_TAG_IN_LIST %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a>
{% elif loop.index == MAX_NB_TAG_IN_LIST %}
et plus!
{% endif %}
{% endfor %}
</kbd>
{% endif %}