This commit is contained in:
tangly1024
2022-04-13 14:54:58 +08:00
parent 67506c4644
commit a23810fa59
7 changed files with 20 additions and 21 deletions

View File

@@ -38,7 +38,7 @@ export const LayoutSearch = props => {
<LayoutBase {...props}>
<h2>Search - {keyword}</h2>
<SearchInput {...props} />
{postsToShow.map(p => (
{postsToShow?.map(p => (
<div key={p.id} className="border my-12">
<Link href={`/article/${p.slug}`}>
<a className="underline cursor-pointer">{p.title}</a>