mirror of
https://github.com/grey-cat-1908/website.git
synced 2024-11-14 20:17:27 +03:00
fixed formation
This commit is contained in:
parent
688872a035
commit
27b3bee6cc
1 changed files with 5 additions and 3 deletions
8
build.py
8
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))
|
||||
|
|
Loading…
Reference in a new issue