hugo-theme-lowtech/layouts/partials/contact/mail.html

10 lines
384 B
HTML
Raw Normal View History

2021-06-11 15:59:39 +02:00
{{- with .Site.Data.contact.mail -}}
2021-07-03 16:03:24 +02:00
{{- $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>
2021-06-11 15:59:39 +02:00
{{- end -}}