example 主题

This commit is contained in:
tangly1024.com
2023-02-03 13:55:21 +08:00
parent 3c280ddf58
commit be1bce6c2d
2 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export const SideBar = (props) => {
href={`/category/${category.name}`}
passHref
legacyBehavior>
<li> <a href="#" className="text-gray-darkest text-sm">{category.name}({category.count})</a></li>
<li> <a href={`/category/${category.name}`} className="text-gray-darkest text-sm">{category.name}({category.count})</a></li>
</Link>
)
})}
@@ -40,7 +40,7 @@ export const SideBar = (props) => {
{latestPosts?.map(p => {
return (
<Link key={p.id} href={`/${p.slug}`} passHref legacyBehavior>
<li> <a href="#" className="text-gray-darkest text-sm">{p.title}</a></li>
<li> <a href={`/${p.slug}`} className="text-gray-darkest text-sm">{p.title}</a></li>
</Link>
)
})}