feat: Add obfuscates partials
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
{{- with .Site.Data.contact.mail -}}
|
||||
<a class="mail" href="mailto:{{ .}}">{{ . }}</a>
|
||||
{{- $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 -}}
|
||||
|
Reference in New Issue
Block a user