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:01:57 EEST 2023
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
b3c36c2f88
commit
656116e21e
1 changed files with 4 additions and 2 deletions
|
@ -764,7 +764,7 @@ def ls(config: typing.Dict[str, typing.Any]) -> int:
|
||||||
|
|
||||||
title : {post["title"]!r}
|
title : {post["title"]!r}
|
||||||
description : {post["description"]!r}
|
description : {post["description"]!r}
|
||||||
content : {trunc(post["content"], 128)!r}
|
content : {trunc(post["content"], config["post-preview-size"])!r}
|
||||||
keywords : {", ".join(post["keywords"])}
|
keywords : {", ".join(post["keywords"])}
|
||||||
created : {format_time(post["created"])}"""
|
created : {format_time(post["created"])}"""
|
||||||
+ (
|
+ (
|
||||||
|
@ -1116,7 +1116,9 @@ def apis(config: typing.Dict[str, typing.Any]) -> int:
|
||||||
kv[0],
|
kv[0],
|
||||||
{
|
{
|
||||||
"title": kv[1]["title"],
|
"title": kv[1]["title"],
|
||||||
"content": trunc(kv[1]["content"], config["post-preview-size"], ""),
|
"content": trunc(
|
||||||
|
kv[1]["content"], config["post-preview-size"], ""
|
||||||
|
),
|
||||||
"created": kv[1]["created"],
|
"created": kv[1]["created"],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue