diff options
Diffstat (limited to 'modules/blog_generate.py')
| -rw-r--r-- | modules/blog_generate.py | 7 |
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 |
