show summary for articles in index.html

This commit is contained in:
Javier G. Sogo 2015-07-28 18:15:04 +02:00
parent 0534a43694
commit 59bbce80a9

View file

@ -18,12 +18,8 @@
</p>
</header>
<div>
{% if summarise or article.metadata['summary'] or article.metadata['summarize'] %}
{{ article.summary }}
<a class="btn" href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">Continue reading</a>
{% else %}
{{ article.content }}
{% endif %}
</div>
{% if not loop.last %}
<hr />