summaryrefslogtreecommitdiff
path: root/scraper
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-03 17:19:51 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-03 17:19:51 +0100
commit966e27c7418d6e188ea4b1f651a5e6c67495b765 (patch)
treefd48ccddfb8af56e544d99f42dce4fe7fd3a7b7c /scraper
parent6062728b63e6496709f2e552542c220f4f16e79c (diff)
base css
Diffstat (limited to 'scraper')
-rw-r--r--scraper/builder.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scraper/builder.py b/scraper/builder.py
index 73d6bfb3..c55b6dff 100644
--- a/scraper/builder.py
+++ b/scraper/builder.py
@@ -49,7 +49,10 @@ def build_file(fn):
groups.append(normal_section(current_group))
content = "".join(groups)
- template = env.get_template("page.html")
+ if 'blog/' in fn:
+ template = env.get_template("blog.html")
+ else:
+ template = env.get_template("page.html")
html = template.render(metadata=metadata, content=content)
os.makedirs(output_path, exist_ok=True)