diff options
-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> |