From 71c7de032edca8bfd00871e0f0fe986bbd9e60a5 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 23 Dec 2025 00:40:57 +0100 Subject: comic basic layout --- modules/blog_generate.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/blog_generate.py') 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 -- cgit v1.2.3-70-g09d2