1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

fixed bug in blag where context was not provided to pages

This commit is contained in:
Bastian Venthur
2021-03-29 12:06:08 +02:00
parent df65dee488
commit 98b97fbbbd
2 changed files with 57 additions and 1 deletions

View File

@@ -289,7 +289,7 @@ def process_markdown(convertibles, input_dir, output_dir,
articles.append((dst, context))
result = article_template.render(context)
else:
pages.append((dst, content))
pages.append((dst, context))
result = page_template.render(context)
with open(f'{output_dir}/{dst}', 'w') as fh_dest:
fh_dest.write(result)