summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/posts/templates/posts/trip_detail.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/posts/templates/posts/trip_detail.html b/app/posts/templates/posts/trip_detail.html
index 82bd5e3..1e52883 100644
--- a/app/posts/templates/posts/trip_detail.html
+++ b/app/posts/templates/posts/trip_detail.html
@@ -21,9 +21,10 @@
<div class="archive-grid">{% for object in posts %}
<article class="h-entry hentry archive-grid-card" itemscope itemType="http://schema.org/Article">
<div class="card-image">
- <a href="{{object.get_absolute_url}}" title="{{object.title}}">
+ <a href="{{object.get_absolute_url}}" title="{{object.title}}">{% if object.featured_image %}
{% include "lib/img_archive.html" with image=object.featured_image %}
- </a>
+ {%else%}
+ <img src="{{object.get_image_url}}" alt="{{ object.title }}" class="u-photo post-image" itemprop="image" />{%endif%}</a>
</div>
<h2 class="p-name card-hed-it" itemprop="headline"><a href="{{object.get_absolute_url}}" class="u-url" title="{{object.title}}">{{object.title|safe|smartypants|widont}}</a></h2>
<p class="p-author author hide" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>