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))