Skip to content

Commit

Permalink
Fix bug where setting 'add_print_site_banner' to false would lead to …
Browse files Browse the repository at this point in the history
…a 'No such file found' error
  • Loading branch information
timvink committed Sep 13, 2021
1 parent 5f121e9 commit 4e3a235
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mkdocs_print_site_plugin/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def __init__(
mkdocs_config={},
cover_page_template_path="",
banner_template_path="",
insert_print_site_banner=True,
print_page=None,
):
"""
Expand All @@ -30,7 +29,6 @@ def __init__(
self.mkdocs_config = mkdocs_config
self.cover_page_template_path = cover_page_template_path
self.banner_template_path = banner_template_path
self.insert_print_site_banner = insert_print_site_banner
self.print_page = print_page

self.items = []
Expand Down Expand Up @@ -59,7 +57,7 @@ def write_combined(self):
if self.plugin_config.get("add_cover_page"):
html += self._cover_page()

if self.insert_print_site_banner:
if self.plugin_config.get("add_print_site_banner"):
html += self._print_site_banner()

if self.plugin_config.get("add_table_of_contents"):
Expand Down

0 comments on commit 4e3a235

Please sign in to comment.