From c7aa31dc1265abeb203370250dfbe060664a2130 Mon Sep 17 00:00:00 2001 From: petr Date: Fri, 6 Nov 2020 09:52:15 +0100 Subject: [PATCH] oprava --- .../templates/zapisnik/blog_index_page.html | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/zapisnik/templates/zapisnik/blog_index_page.html b/zapisnik/templates/zapisnik/blog_index_page.html index ce9aedd..03dd296 100644 --- a/zapisnik/templates/zapisnik/blog_index_page.html +++ b/zapisnik/templates/zapisnik/blog_index_page.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% load wagtailcore_tags wagtailimages_tags %} +{% load wagtailcore_tags wagtailimages_tags static %} {% block body_class %}template-blogindexpage{% endblock %} @@ -11,14 +11,26 @@ {% for post in page.get_children %} {% with post=post.specific %} -

{{ post.title }}

- - {% with post.main_image as main_image %} - {% if main_image %}{% image main_image fill-160x100 %}{% endif %} - {% endwith %} - -

{{ post.intro }}

- {# {{ post.body|richtext }} #} +
+
+
+ {% with post.main_image as main_image %} + {% if main_image %} + {% image main_image class="card-img" fill-400x150 %} + {% else %} + blank image + {% endif %} + {% endwith %} +
+
+
+
{{ post.title }}
+

{{ post.intro }}

+

{{ post.date }}

+
+
+
+
{% endwith %} {% endfor %}