From 27b3bee6cc632ff8039939874b0b696dc4e0c63b Mon Sep 17 00:00:00 2001 From: mrkrk <61203964+grey-cat-1908@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:10:30 +0300 Subject: [PATCH] fixed formation --- build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index e0001db..d246da0 100644 --- a/build.py +++ b/build.py @@ -62,9 +62,11 @@ def generate_html_content(directory, filename, is_blog=False): meta_data = parse_meta(meta) if is_blog: - return blog_template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text)) - .replace("{{%TITLE%}}", meta.get("title", "")) - .replace("{{%META%}}", meta_data) + return ( + blog_template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text)) + .replace("{{%TITLE%}}", meta.get("title", "")) + .replace("{{%META%}}", meta_data) + ) else: return minify_html.minify( template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text))