Skip to content

Commit bd1f608

Browse files
committed
Add email obfuscation to team member profiles
1 parent 8193d49 commit bd1f608

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

_includes/email-display.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{% assign obfuscated_email = include.email | replace: "@", "[at]" | replace: ".", "[dot]" %}
2+
<p><i>email: {{ obfuscated_email }}</i></p>

_includes/team-profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>{{ member.name }}</h1>
1818
<p> {{ member.responsibilities | markdownify | remove: '<p>' | remove: '</p>'}} </p>
1919
{% endif %}
2020
{% if member.email %}
21-
<i>email: <{{ member.email }}></i>
21+
{% include email-display.html email=member.email %}
2222
{% endif %}
2323
{% if member.education %}
2424
<p> <strong>Education:</strong> {{ member.education }} </p>

_pages/team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ permalink: /team/
6868
<p> {{ member.responsibilities | markdownify | remove: '<p>' | remove: '</p>'}} </p>
6969
{% endif %}
7070
{% if member.email %}
71-
<i>email: <{{ member.email }}></i>
71+
{% include email-display.html email=member.email %}
7272
{% endif %}
7373
{% if member.education %}
7474
<p> <strong>Education:</strong> {{ member.education }} </p>

0 commit comments

Comments
 (0)