Procházet zdrojové kódy

Sorts tag in the tags page

Talha Mansoor před 12 roky
rodič
revize
1159bf6641
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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>