Changed rendering of fragment lists.
[wolnelektury.git] / templates / catalogue / main_page.html
index 507fa3a..221595f 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "base.html" %}
-{% load catalogue_tags chunks %}
+{% load catalogue_tags chunks cache %}
 
 {% block bodyid %}main-page{% endblock %}
 
@@ -72,7 +72,7 @@
             {% if categories.theme %}
                 <h2>Motywy</h2>
                 <ul>
-                {% for theme in categories.theme %}
+                {% for theme in fragment_tags %}
                     <li><a href="{% catalogue_url theme %}">{{ theme }}&nbsp;({{ theme.count }})</a></li>
                 {% endfor %}
                 </ul>                
@@ -83,6 +83,8 @@
     
     <div id="latest-blog-posts">
         <h2>Aktualnoƛci z naszego bloga</h2>
+        {% cache 1800 latest-blog-posts %}
         {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %}
+        {% endcache %}
     </div>
 {% endblock %}