From 0305754b8304cdd5fb9f643bf0897a1435277e34 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 17 Sep 2023 17:15:28 +0100 Subject: [PATCH] Render pages with config Mostly useful if template tags want to use it --- hooks/page-render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/page-render.py b/hooks/page-render.py index 70eae7d..f8ba5c0 100644 --- a/hooks/page-render.py +++ b/hooks/page-render.py @@ -7,4 +7,4 @@ def on_page_markdown(markdown, page, config, files): template = env.from_string(markdown) - return template.render(page=page) + return template.render(page=page, config=config)