summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-02 11:59:39 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-02 11:59:39 +0200
commit381452e5193f94960895a60c19e512d9c6857251 (patch)
tree28f46b1e313f13096e51d1767fab3a9d6bb6327b /templates
parent024aac23a9c4b2f5efde4b6ed0d8c6518a633e47 (diff)
downloadrabalderz-381452e5193f94960895a60c19e512d9c6857251.tar.gz
rabalderz-381452e5193f94960895a60c19e512d9c6857251.tar.bz2
rabalderz-381452e5193f94960895a60c19e512d9c6857251.zip
Display full post in index if there's no summary.
Also drop the "Read more..." prompt if the full post is shown.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html8
1 files changed, 6 insertions, 2 deletions
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 @@
</h1>
</header>
<section class="post-summary">
- {{ post.summary | safe }}
+ {% if post.summary %}
+ {{ post.summary | safe }}
+ {% else %}
+ {{ post.content | safe }}
+ {% endif %}
</section>
<footer>
- {% if post.content | length > post.summary | length %}
+ {% if post.summary %}
<a href="{{ post.permalink }}">
{{ trans(key="moreprompt", lang=post.lang) }}
</a>