From ddeb792ecedb4629aa7c8bc33c0eaba45b82b755 Mon Sep 17 00:00:00 2001 From: Sunaina Pai Date: Sat, 11 Aug 2018 10:47:51 +0530 Subject: Do not use headers from one post in other posts --- makesite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makesite.py') 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) -- cgit v1.2.3