From 4eb154f90a918a3750217e849afa5737681bb0eb Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 8 Feb 2019 14:37:30 -0600 Subject: added if tags to hide afterward when there isn't one --- design/sass/_archives.scss | 5 +++++ design/sass/_details.scss | 2 +- design/templates/essays/essay_detail.html | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'design') diff --git a/design/sass/_archives.scss b/design/sass/_archives.scss index 215ff29..29f33df 100644 --- a/design/sass/_archives.scss +++ b/design/sass/_archives.scss @@ -386,3 +386,8 @@ } } } +.essay-archive { + li { + margin-bottom: 2.8rem; + } +} diff --git a/design/sass/_details.scss b/design/sass/_details.scss index 3659c26..8550695 100644 --- a/design/sass/_details.scss +++ b/design/sass/_details.scss @@ -60,7 +60,7 @@ margin: 0 } .afterward { - font-style: italic; + p {font-style: italic;} h4 { margin-bottom: 0; } diff --git a/design/templates/essays/essay_detail.html b/design/templates/essays/essay_detail.html index 9aae254..7e83f6f 100644 --- a/design/templates/essays/essay_detail.html +++ b/design/templates/essays/essay_detail.html @@ -49,10 +49,10 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i
{{object.body_html|safe|smartypants}}
-
+ {% if object.afterward %}

Afterward

{{object.afterword_html|smartypants|safe}} -
+
{% endif%} {%if wildlife or object.field_notes.all or object.books.all %}
{%if wildlife %}