From 92aa1fc024dcda776b070614258d94ecd1d05b49 Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Thu, 23 Apr 2026 19:54:20 +0200 Subject: [PATCH] feat(blog_index_page.html): add BlogIndexPage template --- home/templates/home/blog_index_page.html | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 home/templates/home/blog_index_page.html diff --git a/home/templates/home/blog_index_page.html b/home/templates/home/blog_index_page.html new file mode 100644 index 0000000..9ffb6da --- /dev/null +++ b/home/templates/home/blog_index_page.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% load static i18n wagtailcore_tags wagtailimages_tags %} + +{% block title %}{% trans "Blog" %}{% endblock title %} + +{% block body_class %}template-blogindex{% endblock body_class %} + +{% block content %} +

+ {% trans "Blog" %} +

+ +
+ {% for post in posts %} + + {% image post.specific.image original %} +
+
+
+ + {{ post.specific.author }} +
+
+ + {{ post.first_published_at|date:"F j, Y | H:i" }} +
+
+

{{ post.specific.title }}

+

{{ post.specific.description|truncatewords:20 }}

+
+
+ {% empty %} +

{% trans "No blog posts available." %}

+ {% endfor %} +
+{% endblock content %}