X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8615d540551e222c91409c7f37f9f237f520b88e..5d3277b79ffef805948ca0e105135d13179926b6:/apps/wolnelektury_core/templates/main_page.html diff --git a/apps/wolnelektury_core/templates/main_page.html b/apps/wolnelektury_core/templates/main_page.html index fb9b144c4..118f3ac55 100755 --- a/apps/wolnelektury_core/templates/main_page.html +++ b/apps/wolnelektury_core/templates/main_page.html @@ -1,94 +1,88 @@ {% extends "base.html" %} {% load static from staticfiles %} -{% load cache chunks i18n catalogue_tags infopages_tags social_tags %} +{% load i18n catalogue_tags infopages_tags social_tags %} +{% load ssi_include from ssify %} {% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %} {% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %} -{% block body %} +{% block body %}{% spaceless %} -
- {% cite_promo %} -
+ {% choose_cite as cite_pk %} + {{ cite_pk.if }} + {% ssi_include 'social_cite_main' pk=cite_pk %} + {{ cite_pk.endif }} - {% spaceless %} -
-

- {% trans "What's new?" %} -

-
- {% chunk "promo" %} -
-
+
+

{% trans "What's new?" %}

+
+ {% ssi_include 'chunk' key='promo' %} +
+
-

{% trans "Recent publications" %}

- {% cache 60 last-published-on-main %} +
+

{% trans "Recent publications" %}

{% for book in last_published %} - {% book_mini book %} + {% ssi_include 'catalogue_book_mini' pk=book.pk %} {% endfor %} - {% endcache %} +
-
-

{% trans "News" %}

- {# 135 is the id of new publications category of our master blog. perhaps this URL should go to settings. #} - {% cache 1800 latest-blog-posts %} - {% latest_blog_posts "http://nowoczesnapolska.org.pl/feed/?cat=-135" %} - {% endcache %} -
+
+

{% trans "News" %}

+ {% ssi_include 'latest_blog_posts' %} +
-
-

{% trans "Utilities" %}

+
+

{% trans "Utilities" %}

-
+ -
-

{% trans "Information" %}

- {% cache 60 infopages-on-main LANGUAGE_CODE %} +
+

{% trans "Information" %}

+ -
- + - {% endspaceless %} -{% endblock %} +{% endspaceless %}{% endblock %} -{% block add_footer %} -

{% trans "Image used:" %} -books about architecture, -saikofish@Flickr, -CC BY NC SA. -

-{% endblock %} +{% block add_footer %}{% spaceless %} +{{ cite_pk.if }} +

{% trans "Image used:" %}

+ {% ssi_include 'social_cite_info' pk=cite_pk %} +

+{{ cite_pk.endif }} +{% endspaceless %}{% endblock %}