diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-02 11:59:39 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-02 11:59:39 +0200 |
commit | 381452e5193f94960895a60c19e512d9c6857251 (patch) | |
tree | 28f46b1e313f13096e51d1767fab3a9d6bb6327b /templates | |
parent | 024aac23a9c4b2f5efde4b6ed0d8c6518a633e47 (diff) | |
download | rabalderz-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.html | 8 |
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> |