Merge pull request #316 from dairiki/bug.leading-and-in-tags-list

Omit leading `and` from plugin tag list if there is only one tag
This commit is contained in:
Andreas Runfalk 2021-02-09 12:39:06 +01:00 committed by GitHub
commit 66349a95e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 %}