diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-04 10:34:52 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-04 10:34:52 -0500 |
commit | 14d8b65e1111ceec813dfe68c5f5a739a9cddc78 (patch) | |
tree | be29b1a206553843809cf6a3ed2962ef7241e0d4 /app | |
parent | 40c0bedc6a45d9dc196bd17364f34fb49fb1bb6e (diff) |
added related to essays
Diffstat (limited to 'app')
-rw-r--r-- | app/posts/templates/posts/essay_detail.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/posts/templates/posts/essay_detail.html b/app/posts/templates/posts/essay_detail.html index e95c161..3902e33 100644 --- a/app/posts/templates/posts/essay_detail.html +++ b/app/posts/templates/posts/essay_detail.html @@ -85,6 +85,30 @@ </div>{%endif%} </article> + {% if object.related.all %}<div class="article-afterward related"> + <div class="related-bottom"> + <h6 class="hedtinycaps">You might also enjoy</h6> + <ul class="article-card-list">{% for object in related %} + <li class="article-card-mini"><a href="{{object.get_absolute_url}}" title="{{object.title}}"> + <div class="post-image post-mini-image"> + {% if object.featured_image %} + {% include "lib/img_archive.html" with image=object.featured_image nolightbox=True %} + {%endif%} + </div> + <h4 class="p-name entry-title post-title" itemprop="headline">{% if object.title %}{{object.title|safe|smartypants|widont}}{% else %}{{object.common_name}}{%endif%}</h4> + <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> + <p class="post-summary"> + {% if object.location %}<span class="p-location h-adr adr post-location" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place"> + {% if object.location.country_name == "United States" %}{{object.location.state_name}}{%else%}{{object.location.country_name}}{%endif%} + </span>{%endif%} + {% if object.location and object.model_name.model != 'page' %}–{%endif%} + {% if object.model_name.model != 'page' %}<time class="dt-published published dt-updated post-date" datetime="{{object.pub_date|date:'c'}}"><span>{{object.pub_date|date:" Y"}}</span></time>{%endif%} + </p> + </a> + </li> + {% endfor %}</ul> + </div> + </div>{%endif%} {% comment %} <div class="mailing-list--wrapper"> <h5>If you enjoyed this, you should join the mailing list…</h5> {% include 'mailing_list.html' %} |