Basic support for entries of 'photo' kind

This commit is contained in:
Danielle McLean 2017-10-27 16:04:05 +11:00
parent 1912251801
commit aec22e813d
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
4 changed files with 34 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{% load humanize markdown %}<article class="card h-entry">
{% if entry.photo %}<img class="card-img-top u-photo" src="{{ entry.photo.url }}" />{% endif %}
<div class="card-body">
{% if entry.name %}<h4 class="card-title p-name">{{ entry.name }}</h4>{% endif %}
<div class="e-content{% if not entry.name %} p-name{% endif %}">{{ entry.content | markdown }}</div>