Merge pull request #700 from rareyesdev/fix/draft-state-during-development
fix: remove hardcoded check for draft in development
This commit is contained in:
commit
ef87df56a0
@ -35,9 +35,7 @@ export default function TagPage({ params }: { params: { tag: string } }) {
|
|||||||
// 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(
|
const filteredPosts = allCoreContent(
|
||||||
allBlogs.filter(
|
allBlogs.filter((post) => post.tags && post.tags.map((t) => slug(t)).includes(tag))
|
||||||
(post) => post.draft !== true && post.tags && post.tags.map((t) => slug(t)).includes(tag)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
return <ListLayout posts={filteredPosts} title={title} />
|
return <ListLayout posts={filteredPosts} title={title} />
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user