summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-01-08 02:00:07 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-01-08 02:00:07 +0100
commitaa306982f095bd491d6461b97a5fa7e9ffb825b5 (patch)
tree43b03e6bf208827ba98a562f8cf449d8e4b289ae /scripts
parent3ff1fefee575e178fcc9fcd202ae1147623a6ae4 (diff)
downloadwebsite-aa306982f095bd491d6461b97a5fa7e9ffb825b5.tar.xz
Make dropcaps optional
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bupa4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/bupa b/scripts/bupa
index f2a810b..5fd1952 100755
--- a/scripts/bupa
+++ b/scripts/bupa
@@ -24,6 +24,10 @@ class Page(object):
self.meta_desc = page_dict['description']
if 'keywords' in page_dict:
self.meta_keywords = page_dict['keywords']
+ if 'dropcap' in page_dict:
+ self.dropcap = (page_dict['dropcap'] == 'True')
+ else:
+ self.dropcap = True
self.body = page_dict['body'][0]
def reST_to_html(s, id_prefix='id'):