From 1875c6fd9753bbe3c878542a9bdfb1b0d3e60920 Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Thu, 23 Apr 2026 19:54:51 +0200 Subject: [PATCH] feat(blog_page.html): add BlogPage template --- home/templates/home/blog_page.html | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 home/templates/home/blog_page.html diff --git a/home/templates/home/blog_page.html b/home/templates/home/blog_page.html new file mode 100644 index 0000000..d9da2fb --- /dev/null +++ b/home/templates/home/blog_page.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% load static i18n wagtailcore_tags wagtailimages_tags %} + +{% block title %}{{ page.specific.title }} | {% trans "Blog" %}{% endblock title %} + +{% block body_class %}template-blog{% endblock body_class %} + +{% block content %} +
+ + + +

+ {{ page.specific.title }} +

+
+
+ + {{ page.specific.author }} +
+
+ + {{ page.first_published_at|date:"F j, Y | H:i" }} +
+
+ {% if page.specific.image %} +
+ {% image page.specific.image original class="w-full max-h-100 object-contain rounded-lg" %} +
+ {% endif %} +
+ {% for block in page.body %} + {% if block.block_type == 'heading' %} +

+ {{ block.value }} +

+ {% else %} +
+ {% include_block block %} +
+ {% endif %} + {% endfor %} +
+
+{% endblock content %}