mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Tue 29 Aug 11:45:09 EEST 2023
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
656116e21e
commit
22d39a1da0
2 changed files with 100 additions and 98 deletions
187
blog.json
187
blog.json
File diff suppressed because one or more lines are too long
|
@ -138,6 +138,7 @@ DEFAULT_CONFIG: typing.Dict[str, typing.Any] = {
|
|||
"server-host": "127.0.0.1",
|
||||
"server-port": 8080,
|
||||
"post-preview-size": 196,
|
||||
"read-wpm": 150,
|
||||
"posts": {},
|
||||
}
|
||||
|
||||
|
@ -861,7 +862,7 @@ def build(config: typing.Dict[str, typing.Any]) -> int:
|
|||
locale=config["locale"],
|
||||
post_creation_time=rformat_time(post["created"]),
|
||||
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=(
|
||||
""
|
||||
if "edited" not in post
|
||||
|
|
Loading…
Add table
Reference in a new issue