Skip to content

Commit

Permalink
[DOCS] Minor Bug fix for blogs page (#10021)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhasudha authored Nov 8, 2023
1 parent 513c3c9 commit 5591ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/theme/BlogPostItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function BlogPostItem(props) {
{!isBlogPostPage && image && (
<div className="col blogThumbnail" itemProp="blogThumbnail">
{
location.pathname === '/blog' ? <Link itemProp="url" to={permalink}>
location.pathname.startsWith('/blog') ? <Link itemProp="url" to={permalink}>
<img
src={withBaseUrl(image, {
absolute: true,
Expand All @@ -153,7 +153,7 @@ function BlogPostItem(props) {
{title}
</TitleHeading>
) : (
location.pathname === '/blog' ?
location.pathname.startsWith('/blog') ?
<Link itemProp="url" to={permalink}>
<TitleHeading className={styles.blogPostTitle} itemProp="headline">
{title}
Expand Down

0 comments on commit 5591ec3

Please sign in to comment.