Omit leading `and` from plugin tag list if there is only one tag

This commit is contained in:
Jeff Dairiki 2021-02-07 14:25:18 -08:00
parent 8f6c249313
commit 35a0266891
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
</div>
{% if this.tags %}
{% for t in this.tags|sort %}
{{ "and " if loop.last }}
{{ "and " if loop.last and not loop.first }}
<a href="{{ ('/plugins@tag/' ~ t ~ '/')|url }}">{{ t }}</a>{{ ", " if not loop.last }}
{% endfor %}
{% else %}