适配NextJs13语法

This commit is contained in:
tangly1024
2023-01-01 19:42:37 +08:00
parent b361f7fa0c
commit 6bb5571655
110 changed files with 2494 additions and 2057 deletions

View File

@@ -18,15 +18,15 @@ const RecommendPosts = ({ recommendPosts }) => {
<ul className="font-light text-sm">
{recommendPosts.map(post => (
<li className="py-1" key={post.id}>
<Link href={`/${post.slug}`}>
<a className="cursor-pointer hover:underline">
{post.title}
</a>
<Link href={`/${post.slug}`} className="cursor-pointer hover:underline">
{post.title}
</Link>
</li>
))}
</ul>
</div>
)
);
}
export default RecommendPosts