Skip to content

Commit 78aba52

Browse files
Multiple email addresses and clickable mailto: links (#1)
* modify pandoc template to support multiple emails, make email clickable as mailto: links * make mailto links optional * Implement suggestions from review Document that the `clickable-email` is a boolean, and false by default. Adhere to 80 character limit in `template.html4`. * Update pandoc/template.html4 with suggestion from review Co-authored-by: Théo Winterhalter <[email protected]> --------- Co-authored-by: Jonathan Baumann <> Co-authored-by: Théo Winterhalter <[email protected]>
1 parent 5a2deb3 commit 78aba52

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ We give the semantics of the various fields (all of whom are optional).
6262
words. It will appear below your name.
6363

6464
- `email`: Your email. It will appear next to an envelope in monospace font.
65+
- `clickable-email`: A Boolean deciding whether your email should be a
66+
`mailto:` hyperlink, allowing users to open it in their email client by
67+
clicking on it. By default, it is `false` (no clickable links).
6568

6669
- `location`: Information about your location (university, office, …).
6770
It will appear next to a pin icon.

pandoc/template.html4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@
8484
<p><i class="fa-solid fa-location-dot fa-fw"></i> $location$</p>
8585
$endif$
8686
$if(email)$
87-
<p><i class="fa-regular fa-envelope fa-fw"></i> <code>$email$</code></p>
87+
$for(email)$
88+
<p>
89+
$if(clickable-email)$<a href="mailto:$email$">$endif$
90+
<i class="fa-regular fa-envelope fa-fw"></i> <code>$email$</code>
91+
$if(clickable-email)$</a>$endif$
92+
</p>
93+
$endfor$
8894
$endif$
8995
<div class="icons">
9096
$if(orcid)$

src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description-meta: PhD student in 👽 science
66
og-url: https://basicpage.github.io
77
location: Some lab, office 777
88
9+
clickable-email: false
910
picture: img/profile.png
1011
picture-round: false
1112
side-by-side: true

0 commit comments

Comments
 (0)