summaryrefslogtreecommitdiff
path: root/megapixels/app/site
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-04-16 17:31:17 +0200
committeradamhrv <adam@ahprojects.com>2019-04-16 17:31:17 +0200
commit391b945604a65f09da7d3f069dcef5a571e9b55c (patch)
treeffa9812f46abcebd5f3b371be913b774d8bd123f /megapixels/app/site
parent776ae57da4a27966d58aa76bcac1eed67b75687b (diff)
parent92cdcf6e684a2de2846865e99281d939cc3ecd5a (diff)
merge
Diffstat (limited to 'megapixels/app/site')
-rw-r--r--megapixels/app/site/parser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index 80ba9ece..aa2ddcda 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -59,6 +59,10 @@ def parse_markdown(metadata, sections, s3_path, skip_h1=False):
if 'sidebar' not in section.lower():
current_group.append(section)
in_stats = True
+ if 'end sidebar' in section.lower():
+ groups.append(format_section(current_group, s3_path, 'right-sidebar', tag='div'))
+ current_group = []
+ in_stats = False
elif in_stats and not section.strip().startswith('## ') and 'end sidebar' not in section.lower():
current_group.append(section)
elif in_stats and section.strip().startswith('## ') or 'end sidebar' in section.lower():