From 381452e5193f94960895a60c19e512d9c6857251 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 2 Jun 2020 11:59:39 +0200 Subject: Display full post in index if there's no summary. Also drop the "Read more..." prompt if the full post is shown. --- templates/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 8d4165b..a712ac4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,10 +31,14 @@
- {{ post.summary | safe }} + {% if post.summary %} + {{ post.summary | safe }} + {% else %} + {{ post.content | safe }} + {% endif %}