Sort and skip inner PUBLISH listing

This commit is contained in:
Luke Murphy 2020-12-12 18:23:15 +01:00
parent bfd0425dd9
commit 37994f3b4c
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -94,8 +94,10 @@
</td>
<!-- WOW -->
<td class="magicwords">
{% for magicword in pad.magicwords %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% for magicword in pad.magicwords | sort %}
{% if magicword != "__PUBLISH__" %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %}
{% endfor %}
</td>
</tr>