mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sat 2 Apr 20:55:43 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
7ebd654c57
commit
41649d1d1a
1 changed files with 6 additions and 3 deletions
|
@ -574,13 +574,13 @@ def generate_metadata(config: Dict) -> Tuple[int, Dict]:
|
||||||
def generate_static_full(config: Dict) -> Tuple[int, Dict]:
|
def generate_static_full(config: Dict) -> Tuple[int, Dict]:
|
||||||
"""Generate full static site"""
|
"""Generate full static site"""
|
||||||
|
|
||||||
build_cfg: Dict = {
|
BUILD_CFG: Dict = {
|
||||||
"Cleaning up": clean,
|
"Cleaning up": clean,
|
||||||
"Building static site": build,
|
"Building static site": build,
|
||||||
"Generating metatata": generate_metadata,
|
"Generating metatata": generate_metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
for logger_msg, function in build_cfg.items():
|
for logger_msg, function in BUILD_CFG.items():
|
||||||
log(f"{logger_msg}...", "STATIC")
|
log(f"{logger_msg}...", "STATIC")
|
||||||
_, config = function(config)
|
_, config = function(config)
|
||||||
|
|
||||||
|
@ -640,7 +640,10 @@ def main() -> int:
|
||||||
|
|
||||||
code, config = SUBCOMMANDS[sys.argv[1]](config=json.load(lcfg))
|
code, config = SUBCOMMANDS[sys.argv[1]](config=json.load(lcfg))
|
||||||
|
|
||||||
log(f"Finished in {code_timer() - cmd_time_init} seconds with code {code}", "TIME")
|
log(
|
||||||
|
f"Finished in {code_timer() - cmd_time_init} seconds with code {code}",
|
||||||
|
"TIME",
|
||||||
|
)
|
||||||
|
|
||||||
if config["blogs"]:
|
if config["blogs"]:
|
||||||
log("Sorting blogs by creation time...", "CLEANUP")
|
log("Sorting blogs by creation time...", "CLEANUP")
|
||||||
|
|
Loading…
Add table
Reference in a new issue