update @ Sun 17 Apr 17:15:25 EEST 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-04-17 17:15:25 +03:00
parent fd3b1ee3fa
commit 0b1e7dd55e
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2

View file

@ -257,7 +257,7 @@ def build(config: Dict) -> Tuple[int, Dict]:
os.makedirs(config["blog-dir"], exist_ok=True) os.makedirs(config["blog-dir"], exist_ok=True)
log("Building CSS...", "INFO") log("Minifying CSS...", "MINIFY")
def build_css() -> None: def build_css() -> None:
saved_stdout = sys.stdout saved_stdout = sys.stdout
@ -311,7 +311,7 @@ def build(config: Dict) -> Tuple[int, Dict]:
) )
if blog_meta["minimise"]: if blog_meta["minimise"]:
log(f"Minifying {blog_name!r} HTML") log(f"Minifying {blog_name!r} HTML", "MINIFY")
blog_html_full = html_minify(blog_html_full) blog_html_full = html_minify(blog_html_full)
blog_html.write(blog_html_full) blog_html.write(blog_html_full)
@ -460,7 +460,7 @@ def edit_minimise(blog: str, config: Dict) -> int:
f"Minimise this blog's HTML? [{minimise}] (y/n)", "y" if minimise else "n" f"Minimise this blog's HTML? [{minimise}] (y/n)", "y" if minimise else "n"
) )
+ "y" + "y"
)[0] == "y" ).lower()[0] == "y"
return EXIT_OK return EXIT_OK