summaryrefslogtreecommitdiff
path: root/modules/blog_generate.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2025-12-23 00:40:57 +0100
committerBotond Hende <nettingman@gmail.com>2025-12-23 00:40:57 +0100
commit71c7de032edca8bfd00871e0f0fe986bbd9e60a5 (patch)
treed4735895b56c6679c5f30af2f22b708da5ceaf97 /modules/blog_generate.py
parentb189fb816abf0e7b0f7c85f8b465916d8ba5ff63 (diff)
comic basic layout
Diffstat (limited to 'modules/blog_generate.py')
-rw-r--r--modules/blog_generate.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/blog_generate.py b/modules/blog_generate.py
index ff296e0..04bd673 100644
--- a/modules/blog_generate.py
+++ b/modules/blog_generate.py
@@ -27,10 +27,7 @@ def generate(jinja_env: jinja2.Environment, output_root_path: str, local: bool):
tags.sort(key=lambda key: tag_occurrence_count[key], reverse=True)
top_tags = tags[:10]
- jinja_env.globals.update(site={
- "assets_path": Config.ASSETS_IMPORT_PATH,
- "assets_path_static": Config.ASSETS_IMPORT_PATH_STATIC,
- "host_name": Config.BLOG_HOSTNAME,
+ jinja_env.globals.update(blog={
"blog_name": Config.BLOG_NAME,
"subtitle": Config.BLOG_SUBTITLE,
"top_tags": top_tags
@@ -109,4 +106,4 @@ def generate(jinja_env: jinja2.Environment, output_root_path: str, local: bool):
with open(os.path.join(output_root_path, "feed.xml"), "w") as f:
f.write(rss_template.render(ctx))
- shutil.copytree(Config.ASSETS_SOURCE_DIR, output_root_path + Config.ASSETS_IMPORT_PATH) \ No newline at end of file
+ shutil.copytree(Config.BLOG_ASSETS_SOURCE_DIR, output_root_path + Config.ASSETS_IMPORT_PATH) \ No newline at end of file