From 28f10cff41050a74b02cf40ffb2cfaaa9d72f4bb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 4 Jan 2019 23:41:56 +0100 Subject: add wide/fullwidth sections --- megapixels/app/site/parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'megapixels/app/site/parser.py') diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index d3eccfca..f739315a 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -103,6 +103,10 @@ def parse_markdown(sections, s3_path, skip_h1=False): groups.append(format_section(current_group, s3_path)) groups.append(format_metadata(section)) current_group = [] + elif '![fullwidth:' in section: + groups.append(format_section(current_group, s3_path)) + groups.append(format_section([section], s3_path, type='fullwidth')) + current_group = [] elif '![wide:' in section: groups.append(format_section(current_group, s3_path)) groups.append(format_section([section], s3_path, type='wide')) -- cgit v1.2.3-70-g09d2