diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-08 14:37:30 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-08 14:37:30 -0600 |
commit | 4eb154f90a918a3750217e849afa5737681bb0eb (patch) | |
tree | 0a512355c2ba3d306e10ddbd16e3232aec4f5b9a /design | |
parent | 9f90db9f08b931840eb7d00b1902668be6be0676 (diff) |
added if tags to hide afterward when there isn't one
Diffstat (limited to 'design')
-rw-r--r-- | design/sass/_archives.scss | 5 | ||||
-rw-r--r-- | design/sass/_details.scss | 2 | ||||
-rw-r--r-- | design/templates/essays/essay_detail.html | 4 |
3 files changed, 8 insertions, 3 deletions
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 <div id="article" class="e-content entry-content post--body post--body--{% with object.template_name as t %}{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%endwith%}" itemprop="articleBody"> {{object.body_html|safe|smartypants}} </div> - <div class="afterward"> + {% if object.afterward %}<div class="afterward"> <h4>Afterward</h4> {{object.afterword_html|smartypants|safe}} - </div> + </div>{% endif%} {%if wildlife or object.field_notes.all or object.books.all %}<div class="entry-footer">{%if wildlife %} <aside id="wildlife"> <h3>Fauna and Flora</h3> |