summaryrefslogtreecommitdiff
path: root/megapixels
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-03-04 22:16:30 +0100
committeradamhrv <adam@ahprojects.com>2019-03-04 22:16:30 +0100
commit72abb2f6d0205f7d022d26e9e25fd74b9360a554 (patch)
tree98587f3f8aa61133302faff7541b6f1b60608221 /megapixels
parent83f920dc8c47e212431f1c86d56304afd70d3c54 (diff)
cosmetics
Diffstat (limited to 'megapixels')
-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>"