Display sorted/filtered posts in feature section

This commit is contained in:
Sat Naing
2022-09-22 23:37:53 +06:30
parent 00689f1cba
commit b3e43ba2dc
+1 -1
View File
@@ -66,7 +66,7 @@ const sortedPosts = getSortedPosts(posts);
<h2>Featured</h2>
<ul>
{
posts.map(
sortedPosts.map(
({ frontmatter }) =>
frontmatter.featured && (
<Card