simple posts list

This commit is contained in:
Ayo 2023-02-07 11:46:01 +01:00
parent 2100b69baf
commit 740d0a2614

View file

@ -11,10 +11,16 @@ const postUrls: string[] = posts.map((post) => post.url || "");
--- ---
<h2>{title}</h2> <h2>{title}</h2>
{ <ul>
{
postUrls postUrls
.filter((url) => url !== "") .filter((url) => url !== "")
.map((url) => ( .map((url) => (
<Card href={url} title={url?.replace("/now/and-then/", "")} body="" /> <li>
<a href={url} title={url?.replace("/now/and-then/", "")}>
{url?.replace("/now/and-then/", "")}
</a>
</li>
)) ))
} }
</ul>