From a8d1ae42f8b29891f515d31210f5e8b3e5f331aa Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 4 Oct 2022 21:39:17 +0100 Subject: [PATCH 1/2] don't overwrite destination file --- scripts/mkblog.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/mkblog.py b/scripts/mkblog.py index 0c8d0a7..01ef8b8 100644 --- a/scripts/mkblog.py +++ b/scripts/mkblog.py @@ -46,7 +46,7 @@ if not os.path.isdir(dest_dir): dummy_file = f"{dest_file}.bak" open(dummy_file, 'w').close() -print(f"{dummy_file} -> {dummy_file}") +print(f"{src_file} -> {dummy_file}") markdown.markdownFromFile(input=src_file, output=dummy_file, extensions=["fenced_code"]) print(f"{dummy_file} -> {dest_file}") @@ -81,6 +81,3 @@ with open(dummy_file, 'r') as read_file, open(dest_file, 'w') as write_file: os.remove(dummy_file) -print(f"{src_file} -> {dest_file}") -markdown.markdownFromFile(input=src_file, output=dest_file, extensions=["fenced_code"]) - -- 2.34.1 From 2ce271bf087a9ede5d564507a38b16802921cbd7 Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 4 Oct 2022 21:39:35 +0100 Subject: [PATCH 2/2] remove spare div in template --- src/inc_html/blogend.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/inc_html/blogend.html b/src/inc_html/blogend.html index 51df6ed..c1deb6d 100644 --- a/src/inc_html/blogend.html +++ b/src/inc_html/blogend.html @@ -1,5 +1,4 @@ - #include footer.html -- 2.34.1