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

@ -30,6 +30,7 @@ DON'T send any questions, issues or anything related to Flex to my personal emai
- [Piwik](http://piwik.org/)
- [StatusCake](https://www.statuscake.com/)
- [Github Corners](https://github.com/tholman/github-corners)
- [Representative image](https://github.com/getpelican/pelican-plugins/tree/master/representative_image)
## Install

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>