summaryrefslogtreecommitdiff
path: root/design/templates/jrnl/entry_detail.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-03-15 22:20:19 -0600
committerluxagraf <sng@luxagraf.net>2019-03-15 22:20:19 -0600
commit39e1d3b9d55a9d989c1bf2e4e4179d6da1e9a9c7 (patch)
tree3fcbd1ce6e085208a53e337cab6946b1e504528b /design/templates/jrnl/entry_detail.html
parent1274988c5fed1d8f23b244fba7408d6883d138cf (diff)
hid related for posts without related
Diffstat (limited to 'design/templates/jrnl/entry_detail.html')
-rw-r--r--design/templates/jrnl/entry_detail.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/jrnl/entry_detail.html b/design/templates/jrnl/entry_detail.html
index c19add1..bf83f4f 100644
--- a/design/templates/jrnl/entry_detail.html
+++ b/design/templates/jrnl/entry_detail.html
@@ -121,7 +121,7 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i
</ul>
</nav>{%endwith%}{%endwith%}
</div>
- <div class="article-afterward related">
+ {% if object.related.all %}<div class="article-afterward related">
<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}}">
@@ -146,7 +146,7 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i
</a>
</li>
{% endfor %}</ul>
- </div>
+ </div>{%endif%}
{% comment %} <div class="mailing-list--wrapper">
<h5>If you enjoyed this, you should join the mailing&nbsp;list&hellip;</h5>