{{ $email := .Get 0 }}
{{ $parts := split $email "@" }}
{{ $name := index $parts 0 | base64Encode }}
{{ $domainParts := split (index $parts 1) "." }}
{{ $domain := delimit (first (sub (len $domainParts) 1) $domainParts) "." | base64Encode }}
{{ $tld := index $domainParts (sub (len $domainParts) 1) | base64Encode }}
{{ T "email_protection" }}
{{ if not (.Page.Scratch.Get "protectedEmailJS") }}
{{ .Page.Scratch.Set "protectedEmailJS" true }}
{{ end }}