simple posts list
This commit is contained in:
parent
2100b69baf
commit
740d0a2614
1 changed files with 13 additions and 7 deletions
|
@ -11,10 +11,16 @@ const postUrls: string[] = posts.map((post) => post.url || "");
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>{title}</h2>
|
<h2>{title}</h2>
|
||||||
{
|
<ul>
|
||||||
postUrls
|
{
|
||||||
.filter((url) => url !== "")
|
postUrls
|
||||||
.map((url) => (
|
.filter((url) => url !== "")
|
||||||
<Card href={url} title={url?.replace("/now/and-then/", "")} body="" />
|
.map((url) => (
|
||||||
))
|
<li>
|
||||||
}
|
<a href={url} title={url?.replace("/now/and-then/", "")}>
|
||||||
|
{url?.replace("/now/and-then/", "")}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue