Skip to content

Commit 9b83926

Browse files
authored
Add filter to do a basic email obfuscation (#340)
* Add email obfuscation to team member profiles * Update metadata check-spelling run (pull_request) for email-obfuscation Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com> on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev> --------- Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
1 parent 8193d49 commit 9b83926

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/actions/spelling/expect.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
copyable
2+
endunless
23
Galin
34
genomics
45
optimizing
6+
previndex
7+
pubtit
58
Reoptimization
69
reoptimization
710
Resugaring

_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)