summaryrefslogtreecommitdiff
path: root/megapixels/app/site/parser.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-04 22:42:45 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-04 22:42:45 +0100
commitb7a3687392835aeba24becf21ceaea00bd77d516 (patch)
tree082b00ca3b9ade6ded0831eb0b8e861105dec835 /megapixels/app/site/parser.py
parent754f147d559e44c9830512b7b2a3790577fe7b38 (diff)
parent12672416ce355e0993ee2a2ef26e130bf4f87120 (diff)
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'megapixels/app/site/parser.py')
-rw-r--r--megapixels/app/site/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index 87539ade..f6e308f3 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -136,11 +136,11 @@ def intro_section(metadata, s3_path):
# colorize the first instance of the database name in the header
if 'color' in metadata and metadata['title'] in desc:
desc = desc.replace(metadata['title'], "<span style='color: {}'>{}</span>".format(metadata['color'], metadata['title']), 1)
- section += "<div class='hero_desc'><span>{}</span></div>".format(desc, desc)
+ section += "<div class='hero_desc'><span class='bgpad'>{}</span></div>".format(desc, desc)
if 'subdesc' in metadata:
subdesc = markdown(metadata['subdesc']).replace('<p>', '').replace('</p>', '')
- section += "<div class='hero_subdesc'><span>{}</span></div>".format(subdesc, subdesc)
+ section += "<div class='hero_subdesc'><span class='bgpad'>{}</span></div>".format(subdesc, subdesc)
section += "</div>"
section += "</section>"