summaryrefslogtreecommitdiff
path: root/megapixels/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-04 23:41:56 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-04 23:42:08 +0100
commit28f10cff41050a74b02cf40ffb2cfaaa9d72f4bb (patch)
tree42a906bfc3582f2e89d5b64f564870751db81037 /megapixels/app
parent276c16e1055c23350abd3d9d071cfce9b4f1b27f (diff)
add wide/fullwidth sections
Diffstat (limited to 'megapixels/app')
-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 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'))