summaryrefslogtreecommitdiffstats
path: root/g2h/page.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 17:58:29 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 18:17:07 +0200
commitd8d67f6ba38388aecbf66d791432d5cd3aa8db6e (patch)
tree1cf1c79460d80addcc3e7dcf43b6ae2ad42cacca /g2h/page.py
parentb921db2d6504cee332cf54346dd1c81d034d3acf (diff)
downloadgit2hugo-d8d67f6ba38388aecbf66d791432d5cd3aa8db6e.tar.gz
g2h: Add --content-subdir arg
Diffstat (limited to 'g2h/page.py')
-rw-r--r--g2h/page.py3
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)