From face520b6f78680155e43210420abe865c50e643 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 17 Dec 2022 00:31:15 -0800 Subject: [PATCH] Add email protection --- README.md | 1 + layouts/partials/paige-social.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 34a8dccd..47a00c69 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Search page: - Blog - Bootstrap - Customizable +- E-mail protection - Facebook sharing - Header links - Landing page diff --git a/layouts/partials/paige-social.html b/layouts/partials/paige-social.html index a1a758b4..804c413d 100644 --- a/layouts/partials/paige-social.html +++ b/layouts/partials/paige-social.html @@ -2,8 +2,12 @@
{{ range $k, $v := . }} + {{ if hasPrefix $v "mailto:" }} + {{ $k }} + {{ else }} {{ $k }} {{ end }} + {{ end }}
{{ end }}