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 %}