X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73ce961f14509aabfa26536f847afd28111029c6..8fc17a12a92f649f2b9dd8c884a85d1a7232f248:/wolnelektury/templates/main_page.html diff --git a/wolnelektury/templates/main_page.html b/wolnelektury/templates/main_page.html index b0de3cf0b..988bbb344 100755 --- a/wolnelektury/templates/main_page.html +++ b/wolnelektury/templates/main_page.html @@ -35,9 +35,11 @@ <h2 class="main-last"><span class="mono">Ostatnie publikacje</span></h2> - {% for book in last_published %} - {{ book.mini_box }} - {% endfor %} + {% cache 300 last-published-on-main %} + {% for book in last_published %} + {% book_mini book %} + {% endfor %} + {% endcache %} <div class="clearboth"></div> @@ -66,12 +68,15 @@ <div class="infopages-box"> <h2><span class='mono'>Informacje</span></h2> - - {% infopages_on_main %} + {% cache 300 infopages-on-main LANGUAGE_CODE %} + {% infopages_on_main %} + {% endcache %} <div class="social-links"> - <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="{{ STATIC_URL }}img/social/facebook.png" alt="WolneLektury @ Facebook" /></a> - <a href="http://nk.pl/profile/30441509"><img src="{{ STATIC_URL }}img/social/naszaklasa.png" alt="WolneLektury @ NK" /></a> + <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268" + title='Wolne Lektury @ Facebook'>[f]</a> + <a href="http://nk.pl/profile/30441509" + title='Wolne Lektury @ NK'>[nk]</a> </div> </div>