From 0e6777be5dc1f34ac83dda3da884b1c8e42045ee Mon Sep 17 00:00:00 2001
From: luxagraf <sng@luxagraf.net>
Date: Wed, 6 Mar 2019 11:44:58 -0600
Subject: added preamble to essay template

---
 config/requirements.txt                   | 13 +++----------
 design/templates/essays/essay_detail.html |  3 +++
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/config/requirements.txt b/config/requirements.txt
index 982fbbc..f705262 100644
--- a/config/requirements.txt
+++ b/config/requirements.txt
@@ -6,12 +6,7 @@ decorator==4.0.4
 Django==1.11.5
 django-autocomplete-light==3.2.10
 django-bleach==0.3.0
-django-debug-toolbar==1.8
-django-extensions==1.9.1
-django-gravatar2==1.3.0
-django-paypal==0.2.7
-django-taggit==0.17.5
-django-typogrify==1.3.2
+django-debug-toolbar django-extensions django-gravatar2 django-taggit django-typogrify
 EbookLib==0.16
 facebook-sdk==2.0.0
 flickrapi==2.3
@@ -25,10 +20,8 @@ MarkupSafe==1.0
 medium==0.3.0
 oauthlib==2.0.4
 olefile==0.44
-Pillow==4.2.1
-psycopg2==2.7.3.1
-PyExifTool==0.1
-python-resize-image==1.1.11
+Markdown Pillow psycopg2 python-resize-image smartypants typogrify
+
 pytz==2017.2
 requests==2.18.4
 requests-oauthlib==0.8.0
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">
-- 
cgit v1.2.3-70-g09d2