Преглед на файлове

Sorts tag in the tags page

Talha Mansoor преди 12 години
родител
ревизия
1159bf6641
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>