Skip to content

Commit f6b38a0

Browse files
committed
fix: Always inject "page_number" into the config/template context
1 parent fc9d67b commit f6b38a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/pdfbaker/page.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def __init__(
4040

4141
self.page.log_trace_section("Loading page configuration: %s", config_path)
4242
super().__init__(base_config, config_path)
43+
self["page_number"] = page.number
4344
self.page.log_trace(self.pretty())
4445

4546
self.templates_dir = self["directories"]["templates"]

0 commit comments

Comments
 (0)