summaryrefslogtreecommitdiff
path: root/app/posts/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-05-28 10:09:28 -0500
committerluxagraf <sng@luxagraf.net>2023-05-28 10:09:28 -0500
commitef3a30ebee3f43adc3d0c49e4e89e3c42eedf3ca (patch)
tree8b61c1623b95ff5ee395d88f32f56b6c899c3043 /app/posts/templates
parent4fdef7c45363f350d83a2a72f4750f22cb6e68f9 (diff)
posts: added the more complex image parser to trip detail views because
old posts
Diffstat (limited to 'app/posts/templates')
-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>