js/index : add linkify() to blog content

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-04-06 22:49:29 +03:00
parent 2af630ea3f
commit 3e0e14b37c

View file

@ -59,7 +59,10 @@ async function main() {
null,
{ href: `${BLOG_SITE}/b/${id}` }
),
mkelem("pre", `${post["content"]} ...`),
mkelem(
"pre",
linkify(post["content"]).concat([" ..."])
),
],
blog
);