upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit d2ae32835e - Show all commits

View File

@ -35,9 +35,7 @@ export default function TagPage({ params }: { params: { tag: string } }) {
// Capitalize first letter and convert space to dash
const title = tag[0].toUpperCase() + tag.split(' ').join('-').slice(1)
const filteredPosts = allCoreContent(
allBlogs.filter(
(post) => post.draft !== true && post.tags && post.tags.map((t) => slug(t)).includes(tag)
)
allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(tag))
)
return <ListLayout posts={filteredPosts} title={title} />
}