From 72e7e6730dc0146463f129ba51704bc4979b6dcc Mon Sep 17 00:00:00 2001 From: Jan Christian Gr??nhage Date: Fri, 13 Mar 2020 23:21:42 +0100 Subject: [PATCH] generate summary if it isn't present --- templates/post_macros.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/post_macros.html b/templates/post_macros.html index 2a9566b..0933376 100644 --- a/templates/post_macros.html +++ b/templates/post_macros.html @@ -28,6 +28,12 @@ {{ page.summary | safe }} + {% else %} +
+ {{ page.content | striptags | truncate | safe }} + +
{% endif %} + {% endmacro page_in_list %}