update @ Tue 29 Aug 11:45:09 EEST 2023

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-08-29 11:45:09 +03:00
parent 656116e21e
commit 22d39a1da0
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
2 changed files with 100 additions and 98 deletions

187
blog.json

File diff suppressed because one or more lines are too long

View file

@ -138,6 +138,7 @@ DEFAULT_CONFIG: typing.Dict[str, typing.Any] = {
"server-host": "127.0.0.1", "server-host": "127.0.0.1",
"server-port": 8080, "server-port": 8080,
"post-preview-size": 196, "post-preview-size": 196,
"read-wpm": 150,
"posts": {}, "posts": {},
} }
@ -861,7 +862,7 @@ def build(config: typing.Dict[str, typing.Any]) -> int:
locale=config["locale"], locale=config["locale"],
post_creation_time=rformat_time(post["created"]), post_creation_time=rformat_time(post["created"]),
post_description=html_escape(post["description"]), post_description=html_escape(post["description"]),
post_read_time=read_time_of_markdown(post["content"]).text, post_read_time=read_time_of_markdown(post["content"], config["read-wpm"]).text,
post_edit_time=( post_edit_time=(
"" ""
if "edited" not in post if "edited" not in post