ソースを参照

Fix regression that will not sort tags list

Close #34
Talha Mansoor 11 年 前
コミット
bfa6b102be
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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') %}