clean html
This commit is contained in:
parent
abc2bb243c
commit
0e1c2f0199
2 changed files with 4 additions and 2 deletions
|
@ -123,7 +123,8 @@ def read_content(filename):
|
|||
|
||||
# Convert Markdown content to HTML.
|
||||
if filename.endswith((".md", ".mkd", ".mkdn", ".mdown", ".markdown")):
|
||||
text = mistune.markdown(text)
|
||||
clean_text = text.replace('<!-- more -->', '')
|
||||
text = mistune.markdown(clean_text)
|
||||
|
||||
# Update the dictionary with content and RFC 2822 date.
|
||||
content.update({"content": text, "rfc_2822_date": rfc_2822_format(content["date"])})
|
||||
|
@ -218,6 +219,7 @@ def make_posts(
|
|||
|
||||
# stacosys comments
|
||||
page_params["comment_count"] = 0
|
||||
page_params["comments"] = ''
|
||||
if params["stacosys_url"]:
|
||||
req_url = params["stacosys_url"] + "/comments"
|
||||
query_params = dict(
|
||||
|
|
|
@ -56,7 +56,7 @@ html, body, h1, h2, h3, h4, h5, h6 {
|
|||
font-optical-sizing: auto;
|
||||
}
|
||||
|
||||
p {
|
||||
p, li {
|
||||
font-feature-settings: "kern", "onum", "liga";
|
||||
font-kerning: auto;
|
||||
font-language-override: normal;
|
||||
|
|
Loading…
Add table
Reference in a new issue