We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b4147c + d2ae328 commit ef87df5Copy full SHA for ef87df5
app/tags/[tag]/page.tsx
@@ -35,9 +35,7 @@ export default function TagPage({ params }: { params: { tag: string } }) {
35
// Capitalize first letter and convert space to dash
36
const title = tag[0].toUpperCase() + tag.split(' ').join('-').slice(1)
37
const filteredPosts = allCoreContent(
38
- allBlogs.filter(
39
- (post) => post.draft !== true && post.tags && post.tags.map((t) => slug(t)).includes(tag)
40
- )
+ allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(tag))
41
)
42
return <ListLayout posts={filteredPosts} title={title} />
43
}
0 commit comments