update article templeate to work with pelican cover image plugin if it is loaded

This commit is contained in:
Ben McNeill 2020-07-11 08:40:12 -06:00
parent 0f0ea7e824
commit 84803e570d

View file

@ -47,6 +47,12 @@
{% endif %}
<div>
{% if article.cover_image %}
<figure>
<img src="{{ article.cover_image_url }}" alt="Cover image">
<figcaption>Image by <a href="{{ article.cover_image_link }}">{{ article.cover_image_by }}</a></figcaption>
</figure>
{% endif %}
{{ article.content }}
</div>
<div class="tag-cloud">