mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 17:49:24 +01:00
update @ Wed 30 Aug 02:47:32 EEST 2023
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
22d39a1da0
commit
c12dadfdb9
1 changed files with 5 additions and 2 deletions
|
@ -544,7 +544,7 @@ def read_post(path: str) -> str:
|
||||||
|
|
||||||
# markdown
|
# markdown
|
||||||
|
|
||||||
TITLE_LINKS_RE: typing.Final[str] = r"<:#[^>]+>"
|
TITLE_LINKS_RE: typing.Final[str] = r"<#:[^>]+?>"
|
||||||
|
|
||||||
|
|
||||||
def parse_inline_titlelink(
|
def parse_inline_titlelink(
|
||||||
|
@ -862,7 +862,10 @@ 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"], config["read-wpm"]).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
|
||||||
|
|
Loading…
Add table
Reference in a new issue