Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37067e0

Browse files
author
Carms Ng
committed
[UPD] Pass Member Profile image as og images for member page
1 parent e09799c commit 37067e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/MemberPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function MemberPageTemplate({ data, pageContext }) {
1212

1313
return (
1414
<Layout>
15-
<Seo title={member.name} />
15+
<Seo title={member.name} image={member.image.publicURL} />
1616
<MemberPageStyles>
1717
<MemberCard member={member} />
1818
</MemberPageStyles>
@@ -37,6 +37,7 @@ export const data = graphql`
3737
website
3838
github
3939
image {
40+
publicURL
4041
childImageSharp {
4142
gatsbyImageData(
4243
width: 360,
@@ -55,6 +56,7 @@ export const data = graphql`
5556
website
5657
github
5758
image {
59+
publicURL
5860
childImageSharp {
5961
gatsbyImageData(
6062
width: 500,

0 commit comments

Comments
 (0)