summaryrefslogtreecommitdiff
path: root/builder/parser.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-06 19:39:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-06 19:39:29 +0100
commit2d950c3fa3b8107f941a80f88127ab45e371d128 (patch)
tree239d6b0162b96153d5fc624f1f7ebe6218f51b3e /builder/parser.py
parent1f97c63136a24ae288f7c946f23b1c7519b2c6e0 (diff)
homepage css
Diffstat (limited to 'builder/parser.py')
-rw-r--r--builder/parser.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/builder/parser.py b/builder/parser.py
index da3044a0..dd3643bf 100644
--- a/builder/parser.py
+++ b/builder/parser.py
@@ -46,15 +46,13 @@ def format_metadata(section):
def parse_markdown(sections, s3_path, skip_h1=False):
groups = []
current_group = []
- seen_metadata = False
for section in sections:
if skip_h1 and section.startswith('# '):
continue
- elif section.startswith('+ ') and not seen_metadata:
+ elif section.startswith('+ '):
groups.append(format_section(current_group, s3_path))
groups.append(format_metadata(section))
current_group = []
- seen_metadata = True
elif '![wide:' in section:
groups.append(format_section(current_group, s3_path))
groups.append(format_section([section], s3_path, type='wide'))