diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-25 15:51:19 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-25 15:51:19 -0500 |
commit | 50a852c09f35fa3ce655b7979c179617a323eb63 (patch) | |
tree | e1ce8d55c2bcf01b3d79cc8cbde07e40f433bcdc /app/posts | |
parent | 281f01fbc92e237a1d64b9c327d922edf4bf0712 (diff) |
fixed a template bug
Diffstat (limited to 'app/posts')
-rw-r--r-- | app/posts/templates/posts/jrnl_detail.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/posts/templates/posts/jrnl_detail.html b/app/posts/templates/posts/jrnl_detail.html index dee18b5..8a75f25 100644 --- a/app/posts/templates/posts/jrnl_detail.html +++ b/app/posts/templates/posts/jrnl_detail.html @@ -137,8 +137,8 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i {% 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 != 'page' %}–{%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%} + {% 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> |