Skip to content

Commit

Permalink
Merge pull request #6004 from layer5io/patch-2343
Browse files Browse the repository at this point in the history
fix author slug
  • Loading branch information
Touriist authored Oct 17, 2024
2 parents 1cbb6cd + cca11fc commit 2b8013f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/Blog/Blog-single/author.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const AboutTheAuthor = (props) => {
<div className="authors-info-container">
<h3>About the Author</h3>
<div className="authors-head-shot">
<Link to={`/community/members/${authorInformation.slug}`}>
<Link to={`${authorInformation?.fields?.slug}`}>
<Image {...authorInformation?.frontmatter?.image_path} imgStyle={{ objectFit: "cover" }} alt={authorInformation.frontmatter?.name} className="authors-image" />
</Link>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/sections/Blog/Blog-single/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const BlogSingle = ({ data }) => {
publicURL
}
}
fields {
slug
}
}
}
Expand Down

0 comments on commit 2b8013f

Please sign in to comment.