Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 3d87eff

Browse files
committed
Add fields to team page
1 parent f62395d commit 3d87eff

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pages/team/[[...slug]].js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,33 @@ export default function Team({post, archive, posts, pagination}) {
7171
<Breadcrumbs breadcrumbs={post.seo.breadcrumbs} />
7272
)}
7373
<h1 dangerouslySetInnerHTML={{__html: post?.title}} />
74+
<p>{post?.teamMemberProfile?.title}</p>
7475
<Blocks blocks={post?.blocks} />
76+
{!!post?.teamMemberProfile && (
77+
// Other profiles exist; this is a sample.
78+
<ul>
79+
{!!post.teamMemberProfile.facebookUrl && (
80+
<li>
81+
<a href={post.teamMemberProfile.facebookUrl}>Facebook</a>
82+
</li>
83+
)}
84+
{!!post.teamMemberProfile.linkedinUrl && (
85+
<li>
86+
<a href={post.teamMemberProfile.linkedinUrl}>LinkedIn</a>
87+
</li>
88+
)}
89+
{!!post.teamMemberProfile.twitterUrl && (
90+
<li>
91+
<a href={post.teamMemberProfile.twitterUrl}>Twitter</a>
92+
</li>
93+
)}
94+
{!!post.teamMemberProfile.githubUrl && (
95+
<li>
96+
<a href={post.teamMemberProfile.githubUrl}>GitHub</a>
97+
</li>
98+
)}
99+
</ul>
100+
)}
75101
</article>
76102
</Container>
77103
</Layout>

0 commit comments

Comments
 (0)