diff options
author | luxagraf <sng@luxagraf.net> | 2019-03-06 11:44:58 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-03-06 11:44:58 -0600 |
commit | 0e6777be5dc1f34ac83dda3da884b1c8e42045ee (patch) | |
tree | d94bb9aa7ab1e2350f265dc7d3008bd0b23ab640 /design/templates | |
parent | 72f0ad55b81f60725f4c7091545f1f92e7c6d652 (diff) |
added preamble to essay template
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/essays/essay_detail.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/design/templates/essays/essay_detail.html b/design/templates/essays/essay_detail.html index 99c105e..bdf502c 100644 --- a/design/templates/essays/essay_detail.html +++ b/design/templates/essays/essay_detail.html @@ -49,6 +49,9 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i </div> </header> <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"> + {% if object.preamble %}<div class="afterward"> + {{object.preamble|smartypants|safe}} + </div>{%endif%} {{object.body_html|safe|smartypants}} </div> {% if object.afterword_html %}<div class="afterward"> |