added support for representative_image plugin

This commit is contained in:
Matěj Šmíd 2017-02-16 11:07:54 +01:00
parent 92db3aa5f7
commit 7c970567f8
2 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme.
- [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 }}#{{ article.slug }}">{{ _('Continue reading') }}</a>