Przeglądaj źródła

Fix regression that will not sort tags list

Close #34
Talha Mansoor 11 lat temu
rodzic
commit
bfa6b102be
1 zmienionych plików z 1 dodań i 1 usunięć
  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') %}