added support for representative_image plugin (#83)

This commit is contained in:
Matěj Šmíd 2017-02-23 17:50:54 +01:00 committed by Alexandre Vicenzi
parent a76e802b8f
commit 9b7f89a5e7
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,9 @@
</header>
<div>
{% if summarise or article.metadata['summary'] or SUMMARY_MAX_LENGTH %}
{% if article.featured_image %}
<img src="{{ article.featured_image }}">
{% endif %}
{{ article.summary }}
<br>
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>