upstream #1

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

View File

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