aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 79e187a..f0740fe 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -6,7 +6,17 @@
{% for page in paginator.pages %}
<article>
{{ macros::title(page=page) }}
- <p>{{ page.summary | markdown(inline=true) | safe }} <a href="{{ page.permalink | safe }}">...more</a></p>
+ <p>
+ {% if page.summary -%}
+ {{ page.summary | markdown(inline=true) | safe }}
+ {% elif page.description %}
+ {{ page.description | safe }}
+ {% elif page.content %}
+ {{ page.content | safe | striptags | truncate(length=150) }}
+ {% elif page.extra.static_thumbnail %}
+ {% endif -%}
+ <a href="{{ page.permalink | safe }}">...more</a>
+ </p>
</article>
{% endfor %}
<nav>