Omit leading `and` from plugin tag list if there is only one tag
This commit is contained in:
parent
8f6c249313
commit
35a0266891
|
@ -62,7 +62,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% if this.tags %}
|
{% if this.tags %}
|
||||||
{% for t in this.tags|sort %}
|
{% 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 }}
|
<a href="{{ ('/plugins@tag/' ~ t ~ '/')|url }}">{{ t }}</a>{{ ", " if not loop.last }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue