mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-17 16:35:52 +00:00
feat: email obfuscation (#2711)
This commit is contained in:
8 files changed
+67
-34
No files matched your search
@@ -79,9 +79,14 @@
|
||||
<div class="flex flex-wrap">
|
||||
{{ range $links := . }}
|
||||
{{ range $name, $url := $links }}
|
||||
{{ $isEmail := eq $name "email" }}
|
||||
<a
|
||||
class="hover:text-primary-400 text-primary-800 dark:text-primary-200 px-1"
|
||||
href="{{ $url }}"
|
||||
class="{{ cond $isEmail "email-link" "" }} hover:text-primary-400 text-primary-800 dark:text-primary-200 px-1"
|
||||
href="{{ cond $isEmail "#" ($url | safeURL) }}"
|
||||
{{ if $isEmail }}
|
||||
data-email="{{ $url | base64Encode }}"
|
||||
data-subject="Contact"
|
||||
{{ end }}
|
||||
target="_blank"
|
||||
aria-label="{{ $name | title }}"
|
||||
title="{{ $name | title }}"
|
||||
|
||||
Reference in new issue
Block a user