From 0e1c2f019900011e69b5b2714edcc535e7ef4af6 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 26 Aug 2019 23:41:38 +0200 Subject: [PATCH] clean html --- makesite.py | 4 +++- static/css/style.css | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/makesite.py b/makesite.py index 6ffd38a..667d951 100755 --- a/makesite.py +++ b/makesite.py @@ -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('', '') + 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( diff --git a/static/css/style.css b/static/css/style.css index 1698c6d..8ac8e70 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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;