Browse Source

Shows leading zero in date of each article in the list for each category

For alignment
Talha Mansoor 11 years ago
parent
commit
873984df25
1 changed files with 1 additions and 2 deletions
  1. 1 2
      templates/categories.html

+ 1 - 2
templates/categories.html

@@ -34,8 +34,7 @@ All Categories - {{ super() }}
                     <div class="accordion-inner">
                         <ul class="list-articles-category">
                             {% for article in articles %} 
-                            {% set day = article.date.strftime('%d')|int %}
-                            <li><span>{{ article.date.strftime('%b') }} {{ day }}{{ article.date.strftime(', %Y') }}</span> <a href="{{ article.url }}">{{ article.title }}</a></li>
+                            <li><span>{{ article.date.strftime('%b %d, %Y') }}</span> <a href="{{ article.url }}">{{ article.title }}</a></li>
                             {% endfor %}
                         </ul>
                     </div>