Explorar o código

Sorts tag in the tags page

Talha Mansoor %!s(int64=12) %!d(string=hai) anos
pai
achega
1159bf6641
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/tags.html

+ 1 - 1
templates/tags.html

@@ -20,7 +20,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
             <input type="text" class="input-medium search-query filterinput" placeholder="Find a tag">
         </form>
         <ul class="list-of-tags">
-            {% for tag, articles in tags %}
+            {% for tag, articles in tags|sort %}
             <li>
             {% set num = articles|count %}
             <a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}<span>{{ num }}</span></a>