From 35a02668918a226b8664874d67bf4618277e2041 Mon Sep 17 00:00:00 2001 From: Jeff Dairiki Date: Sun, 7 Feb 2021 14:25:18 -0800 Subject: [PATCH] Omit leading `and` from plugin tag list if there is only one tag --- templates/plugin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/plugin.html b/templates/plugin.html index 73f13774..0527f1d5 100644 --- a/templates/plugin.html +++ b/templates/plugin.html @@ -62,7 +62,7 @@ {% if this.tags %} {% for t in this.tags|sort %} - {{ "and " if loop.last }} + {{ "and " if loop.last and not loop.first }} {{ t }}{{ ", " if not loop.last }} {% endfor %} {% else %}