diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 17:58:29 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 18:17:07 +0200 |
| commit | d8d67f6ba38388aecbf66d791432d5cd3aa8db6e (patch) | |
| tree | 1cf1c79460d80addcc3e7dcf43b6ae2ad42cacca /g2h/page.py | |
| parent | b921db2d6504cee332cf54346dd1c81d034d3acf (diff) | |
| download | git2hugo-d8d67f6ba38388aecbf66d791432d5cd3aa8db6e.tar.gz | |
g2h: Add --content-subdir arg
Diffstat (limited to 'g2h/page.py')
| -rw-r--r-- | g2h/page.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |