瀏覽代碼

Sort tags list

Talha Mansoor 11 年之前
父節點
當前提交
ae76e2f38e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/tags.html

+ 1 - 1
templates/tags.html

@@ -32,7 +32,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 %}