fixed formation

This commit is contained in:
mrkrk 2024-10-14 16:10:30 +03:00 committed by GitHub
parent 688872a035
commit 27b3bee6cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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