Skip to content

Commit

Permalink
Merge pull request #54 from explodabowl/HideStaffEmail
Browse files Browse the repository at this point in the history
Hid Staff Email
  • Loading branch information
leomet07 authored Mar 3, 2024
2 parents 4007f53 + 0f1837f commit 9da5160
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pages/staff/[staff_identifier].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ function StaffMember(props: Props) {
staff_member.description ||
`${staff_member.name} at The Stuyvesant Spectator`;

const display_email = staff_member.email.replaceAll("@", " [ at ] ").replaceAll(".", " [ dot ] ");

return (
<div>
<Head>
Expand All @@ -50,9 +52,9 @@ function StaffMember(props: Props) {
<span id={styles.slug}>({staff_member.slug})</span>
</h1>

<a href={"mailto:" + staff_member.email} id={styles.email}>
{staff_member.email}
</a>
<span id={styles.email}>
{display_email}
</span>
<p id={styles.description}>{staff_member.description}</p>

<ListArticleDisplay articles={props.staff_articles} />
Expand Down

0 comments on commit 9da5160

Please sign in to comment.