mirror of
https://github.com/grey-cat-1908/website.git
synced 2024-11-15 04:27: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)
|
meta_data = parse_meta(meta)
|
||||||
|
|
||||||
if is_blog:
|
if is_blog:
|
||||||
return blog_template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text))
|
return (
|
||||||
.replace("{{%TITLE%}}", meta.get("title", ""))
|
blog_template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text))
|
||||||
.replace("{{%META%}}", meta_data)
|
.replace("{{%TITLE%}}", meta.get("title", ""))
|
||||||
|
.replace("{{%META%}}", meta_data)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return minify_html.minify(
|
return minify_html.minify(
|
||||||
template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text))
|
template_text.replace("{{%CONTENT%}}", markdown_renderer(md_text))
|
||||||
|
|
Loading…
Reference in a new issue