From 00f7157d31e62e8991385027773310fdb3693efa Mon Sep 17 00:00:00 2001 From: Jean Date: Thu, 1 Aug 2024 16:00:16 -0700 Subject: [PATCH] Implements ROT13 encryption for email, resolves #1 --- assets/icons/email.svg | 5 ----- assets/icons/linkedin.svg | 13 ------------- assets/icons/mastodon.svg | 5 ----- assets/icons/matrix.svg | 5 ----- package.json | 5 +++-- partials/social-media.hbs | 10 ++++++---- 6 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 assets/icons/email.svg delete mode 100644 assets/icons/linkedin.svg delete mode 100644 assets/icons/mastodon.svg delete mode 100644 assets/icons/matrix.svg diff --git a/assets/icons/email.svg b/assets/icons/email.svg deleted file mode 100644 index 131a8ad0..00000000 --- a/assets/icons/email.svg +++ /dev/null @@ -1,5 +0,0 @@ - - Mail - - - diff --git a/assets/icons/linkedin.svg b/assets/icons/linkedin.svg deleted file mode 100644 index 528eded8..00000000 --- a/assets/icons/linkedin.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - diff --git a/assets/icons/mastodon.svg b/assets/icons/mastodon.svg deleted file mode 100644 index 2c8adfec..00000000 --- a/assets/icons/mastodon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - Mastodon - - diff --git a/assets/icons/matrix.svg b/assets/icons/matrix.svg deleted file mode 100644 index 23c482d3..00000000 --- a/assets/icons/matrix.svg +++ /dev/null @@ -1,5 +0,0 @@ - - Matrix - - diff --git a/package.json b/package.json index f3b44925..78c7ef54 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,9 @@ "type": "text", "default": "Contact me!" }, - "email_address": { - "type": "text" + "email_address_encrypted_with_rot13": { + "type": "text", + "default": "https://rot13.com/" }, "mastodon_link": { "type": "text" diff --git a/partials/social-media.hbs b/partials/social-media.hbs index ecc152b9..8c9cb2ae 100644 --- a/partials/social-media.hbs +++ b/partials/social-media.hbs @@ -1,8 +1,10 @@
- {{#if @custom.email_address}} - + {{#if @custom.email_address_encrypted_with_rot13}} + {{!-- Email and icon text is encrypted in ROT13 to prevent scraping from bots --}} + {{/if}} {{#if @custom.mastodon_link}}