From d8d67f6ba38388aecbf66d791432d5cd3aa8db6e Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 24 Aug 2025 17:58:29 +0200 Subject: g2h: Add --content-subdir arg --- g2h/page.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g2h/page.py') diff --git a/g2h/page.py b/g2h/page.py index 44f97ee..a708f2b 100644 --- a/g2h/page.py +++ b/g2h/page.py @@ -2,9 +2,10 @@ from jinja2 import Environment, FileSystemLoader import os class Page: - def __init__(self, template_file, out_dir, out_file, name): + def __init__(self, template_file, out_dir, out_file, name, content_subdir): self.out_file_path = os.path.join(out_dir, out_file) self.name = name + self.content_subdir = content_subdir template_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'templates')) self.template = Environment(loader=FileSystemLoader(template_dir)).get_template(template_file) -- cgit v1.2.3