summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-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>