Sfoglia il codice sorgente

Fix regression that will not sort tags list

Close #34
Talha Mansoor 11 anni fa
parent
commit
bfa6b102be
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      templates/tags.html

+ 1 - 1
templates/tags.html

@@ -38,7 +38,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
 
 <div class="row-fluid">
     <div class="span8 offset2">
-        {% for tag, articles in tags %}
+        {% for tag, articles in tags|sort %}
         <h2 id="{{ tag|replace(' ', '-')|e }}-ref" class="tag-title">{{ tag }}</h2>
         <ul class="articles-in-tag">
             {% for article in articles|sort(reverse = true, attribute = 'date') %}