summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--megapixels/app/site/parser.py4
-rw-r--r--site/assets/css/css.css8
-rw-r--r--site/templates/datasets.html2
3 files changed, 12 insertions, 2 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'))
diff --git a/site/assets/css/css.css b/site/assets/css/css.css
index 7e354a4c..81b2febd 100644
--- a/site/assets/css/css.css
+++ b/site/assets/css/css.css
@@ -312,9 +312,15 @@ section.images {
width: 186px;
}
section.wide {
- width: 100%;
+ width: 960px;
}
section.wide .image {
+ max-width: 960px;
+}
+section.wide {
+ width: 100%;
+}
+section.fullwidth .image {
max-width: 100%;
}
.caption {
diff --git a/site/templates/datasets.html b/site/templates/datasets.html
index ba230eee..a37d722d 100644
--- a/site/templates/datasets.html
+++ b/site/templates/datasets.html
@@ -4,7 +4,7 @@
{{ content }}
- <section>
+ <section class="wide">
<h2>Dataset Portraits</h2>
<p>
We have prepared detailed studies of some of the more noteworthy datasets.