summaryrefslogtreecommitdiff
path: root/builder/builder.py
diff options
context:
space:
mode:
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,