mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Display sorted/filtered posts in feature section
This commit is contained in:
@@ -66,7 +66,7 @@ const sortedPosts = getSortedPosts(posts);
|
|||||||
<h2>Featured</h2>
|
<h2>Featured</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
posts.map(
|
sortedPosts.map(
|
||||||
({ frontmatter }) =>
|
({ frontmatter }) =>
|
||||||
frontmatter.featured && (
|
frontmatter.featured && (
|
||||||
<Card
|
<Card
|
||||||
|
|||||||
Reference in New Issue
Block a user