summaryrefslogtreecommitdiff
path: root/makesite.py
diff options
context:
space:
mode:
authorSunaina Pai <sunainapai.in@gmail.com>2018-08-11 10:47:51 +0530
committerSunaina Pai <sunainapai.in@gmail.com>2018-08-11 10:47:51 +0530
commitddeb792ecedb4629aa7c8bc33c0eaba45b82b755 (patch)
treeb072ac2b6e7d3663afa85fe44af7171e5141bce1 /makesite.py
parent99c8e268a6c2c75943e1069ff95a5d64e1e19908 (diff)
Do not use headers from one post in other posts
Diffstat (limited to 'makesite.py')
-rwxr-xr-xmakesite.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/makesite.py b/makesite.py
index 8f4c736..cf23374 100755
--- a/makesite.py
+++ b/makesite.py
@@ -132,10 +132,10 @@ def make_pages(src, dst, layout, **params):
content = read_content(src_path)
items.append(content)
- params.update(content)
+ page_params = dict(params, **content)
- dst_path = render(dst, **params)
- output = render(layout, **params)
+ dst_path = render(dst, **page_params)
+ output = render(layout, **page_params)
log('Rendering {} => {} ...', src_path, dst_path)
fwrite(dst_path, output)