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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user