mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun 17 Apr 17:15:25 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
fd3b1ee3fa
commit
0b1e7dd55e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue