diff options
author | Sunaina Pai <sunainapai.in@gmail.com> | 2018-08-11 10:47:51 +0530 |
---|---|---|
committer | Sunaina Pai <sunainapai.in@gmail.com> | 2018-08-11 10:47:51 +0530 |
commit | ddeb792ecedb4629aa7c8bc33c0eaba45b82b755 (patch) | |
tree | b072ac2b6e7d3663afa85fe44af7171e5141bce1 /makesite.py | |
parent | 99c8e268a6c2c75943e1069ff95a5d64e1e19908 (diff) |
Do not use headers from one post in other posts
Diffstat (limited to 'makesite.py')
-rwxr-xr-x | makesite.py | 6 |
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) |