summaryrefslogtreecommitdiff
path: root/builder/builder.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-06 19:39:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-06 19:39:29 +0100
commit2d950c3fa3b8107f941a80f88127ab45e371d128 (patch)
tree239d6b0162b96153d5fc624f1f7ebe6218f51b3e /builder/builder.py
parent1f97c63136a24ae288f7c946f23b1c7519b2c6e0 (diff)
homepage css
Diffstat (limited to 'builder/builder.py')
-rw-r--r--builder/builder.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/builder/builder.py b/builder/builder.py
index 0e404b88..620fc710 100644
--- a/builder/builder.py
+++ b/builder/builder.py
@@ -29,10 +29,12 @@ def build_page(fn, research_posts):
output_path = public_path + metadata['url']
output_fn = os.path.join(output_path, "index.html")
- is_research = False
+ skip_h1 = False
- if 'research/' in fn:
- is_research = True
+ if metadata['url'] == '/':
+ template = env.get_template("home.html")
+ elif 'research/' in fn:
+ skip_h1 = True
template = env.get_template("research.html")
else:
template = env.get_template("page.html")
@@ -47,7 +49,7 @@ def build_page(fn, research_posts):
if 'index.md' in fn:
s3.sync_directory(dirname, s3_dir, metadata)
- content = parser.parse_markdown(sections, s3_path, skip_h1=is_research)
+ content = parser.parse_markdown(sections, s3_path, skip_h1=skip_h1)
html = template.render(
metadata=metadata,