summaryrefslogtreecommitdiff
path: root/app/posts/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-11-25 15:47:15 -0500
committerluxagraf <sng@luxagraf.net>2020-11-25 15:47:15 -0500
commit281f01fbc92e237a1d64b9c327d922edf4bf0712 (patch)
tree0dbce257d671b0a298f02d7360bfb721f1055f97 /app/posts/templates
parent8d9d984347ce3609b0d075edab3322b9d9c314b4 (diff)
cleaned up related posts to account for locationless dateless related
things
Diffstat (limited to 'app/posts/templates')
-rw-r--r--app/posts/templates/posts/jrnl_detail.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/posts/templates/posts/jrnl_detail.html b/app/posts/templates/posts/jrnl_detail.html
index 0904178..dee18b5 100644
--- a/app/posts/templates/posts/jrnl_detail.html
+++ b/app/posts/templates/posts/jrnl_detail.html
@@ -134,11 +134,11 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i
<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">
- <span class="p-location h-adr adr post-location" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place">
+ {% 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>
- &ndash;
- <time class="dt-published published dt-updated post-date" datetime="{{object.pub_date|date:'c'}}"><span>{{object.pub_date|date:" Y"}}</span></time>
+ </span>{%endif%}
+ {% if object.location and object.model_name != 'page' %}&ndash;{%endif%}
+ {% if object.model_name != '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>