10 lines
384 B
HTML
10 lines
384 B
HTML
{{- with .Site.Data.contact.mail -}}
|
|
{{- $protocol := "mailto" -}}
|
|
{{- $mail := . -}}
|
|
{{- $mailWithProtocol := print $protocol ":" . -}}
|
|
<a
|
|
class="mail obfuscate"
|
|
data-link="{{ range $index := seq (sub (len $mailWithProtocol) 1) 0}}{{ substr $mailWithProtocol $index 1}}{{ end }}"
|
|
>{{ range $index := seq (sub (len $mail) 1) 0}}{{ substr $mail $index 1}}{{ end }}</a>
|
|
{{- end -}}
|