summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/templates/sightings/sighting_list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/sightings/templates/sightings/sighting_list.html b/app/sightings/templates/sightings/sighting_list.html
index 0264bda..f5a2df7 100644
--- a/app/sightings/templates/sightings/sighting_list.html
+++ b/app/sightings/templates/sightings/sighting_list.html
@@ -8,10 +8,10 @@
{% block primary %}
<main class="archive-grid">{% autopaginate object_list 24%}
<h1 class="hide">Plants and Animals seen {% if region %}in {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%} by {{user}}{%endif%}</h1> {% for object in object_list %}
- <article class="archive-grid-card">{% if object.ap.image%}
+ <article class="archive-grid-card">{% if object.ap.featured_image%}
<div class="post--image">
<a href="{{object.ap.get_absolute_url}}" title="{{object.ap}}">
- {% include "lib/img_archive.html" with image=object.ap.image %}
+ {% include "lib/img_archive.html" with image=object.ap.featured_image %}
</a>
</div>{% endif %}
<h2 class="card-hed-smit"><a href="{{object.ap.get_absolute_url}}" title="{%if object.title_keywords%}{{object.title_keywords}}{%else%}{{object.ap}}{%endif%}">{{object.ap|safe|smartypants|widont}} (<span class="sci">{{object.ap.scientific_name}}</span>)</a></h2>