summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBotond Hende <contact@wazul.moe>2026-04-05 12:19:18 +0200
committerBotond Hende <contact@wazul.moe>2026-04-05 12:19:18 +0200
commit431f93d2863babe3362a765507945cbfe987cd05 (patch)
treefc10fe8c1b2e2de9f9d886a7eeb3321e03bb7201 /modules
parent5da2ab0744ad21f70b12a5ab31fe8d8889236f31 (diff)
make generating all subdomains for local testing functionalHEADmaster
Diffstat (limited to 'modules')
-rw-r--r--modules/blog_generate.py2
-rw-r--r--modules/comic_generate.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/blog_generate.py b/modules/blog_generate.py
index 904050d..3bf21be 100644
--- a/modules/blog_generate.py
+++ b/modules/blog_generate.py
@@ -103,7 +103,7 @@ def generate(jinja_env: jinja2.Environment, output_root_path: str, local: bool):
"build_date": email.utils.format_datetime(datetime.datetime.now(Config.TIMEZONE)),
"posts": posts[:5]
}
- with open(os.path.join(output_root_path, "feed.xml"), "w") as f:
+ with open(os.path.join(output_root_path, Config.RSS_FILE_NAME), "w") as f:
f.write(rss_template.render(ctx))
shutil.copytree(Config.BLOG_ASSETS_SOURCE_DIR, output_root_path + Config.ASSETS_IMPORT_PATH) \ No newline at end of file
diff --git a/modules/comic_generate.py b/modules/comic_generate.py
index f30366e..cb12161 100644
--- a/modules/comic_generate.py
+++ b/modules/comic_generate.py
@@ -68,7 +68,6 @@ def generate(jinja_env: jinja2.Environment, output_root_path: str, local: bool):
jinja_env.globals.update(comic={
"comic_name": Config.COMIC_NAME,
- "comic_url": Config.COMIC_ROOT_URL,
})
issues = get_issues(Config.ISSUE_SOURCE_DIR, local)
@@ -104,6 +103,6 @@ def generate(jinja_env: jinja2.Environment, output_root_path: str, local: bool):
"build_date": email.utils.format_datetime(datetime.datetime.now(Config.TIMEZONE)),
"issues": issues[:5]
}
- with open(os.path.join(output_root_path, "feed.xml"), "w") as f:
+ with open(os.path.join(output_root_path, Config.RSS_FILE_NAME), "w") as f:
f.write(rss_template.render(ctx))