Skip to content

Commit 6f94751

Browse files
committed
hide breadcrumb for individual post on listing page
1 parent 54f52f4 commit 6f94751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/BlogPostItem/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function BlogPostItem({children, className}) {
1717
const containerClassName = useContainerClassName();
1818
return (
1919
<BlogPostItemContainer className={clsx(containerClassName, className)}>
20-
{location.pathname === '/docs/knowledgebase' || location.pathname.includes('/docs/knowledgebase/tags/') ? <div></div> : <BlogBreadcrumbs/>}
20+
{location.pathname.includes('/knowledgebase') || location.pathname.includes('/knowledgebase/tags/') ? <div></div> : <BlogBreadcrumbs/>}
2121
<BlogPostItemHeader />
2222
<BlogPostItemContent>{children}</BlogPostItemContent>
2323
<BlogPostItemFooter />

0 commit comments

Comments
 (0)