From c4be3181b6f9dc02f6b659506706445c11d9db45 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 26 Jan 2026 16:13:52 +0100 Subject: Add a blog --- templates/post_macros.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 templates/post_macros.html (limited to 'templates/post_macros.html') diff --git a/templates/post_macros.html b/templates/post_macros.html new file mode 100644 index 0000000..c128bc5 --- /dev/null +++ b/templates/post_macros.html @@ -0,0 +1,42 @@ +{% macro meta(post) %} +
+ +{% endmacro meta %} + +{% macro summary(post) %} +
+

+ {{ post.title }} +

+ {{ post_macros::meta(post=post) }} + {% if post.extra.visual_aid_src and post.extra.visual_aid_alt %} +
+ {% set resized_image = resize_image(path=post.extra.visual_aid_src, width=100, height=75) %} + {{post.extra.visual_aid_alt}} +

{{ post.summary | safe }}

+
+ {% else %} +

{{ post.summary | safe }}

+ {% endif %} +
+{% endmacro summary %} -- cgit