Remove email protection from icons

This commit is contained in:
Will Faught
2023-09-24 18:38:38 -07:00
parent a1dd5aed63
commit 3c35c5840b

View File

@@ -8,11 +8,7 @@
<span class="paige-icon">
{{ with $url }}
{{ if hasPrefix . "mailto:" }}
<a href="#" data-a="{{ base64Encode (index (split . `@`) 0) }}" data-b="{{ base64Encode `@` }}" data-c="{{ base64Encode (index (split . `@`) 1) }}" onclick="this.href = atob(this.dataset.a) + atob(this.dataset.b) + atob(this.dataset.c)">
{{ else }}
<a href="{{ . }}">
{{ end }}
<a href="{{ . }}">
{{ end }}
<i class="{{ $class }}">{{ with $name }}<span class="visually-hidden">{{ . }}</span>{{ end }}</i>