From 0a95ffa08af0f52fd47d1f82c853e16f986ed348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Piku=C5=82a?= Date: Sun, 2 Jun 2024 00:47:34 +0200 Subject: [PATCH] Don't open hero social link if href is local MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In case link for a social icon in the hero image is set to local link (e.g., "#contact"), don't open it in a new tab. It's useful if you don't want to publish a link to your e-mail in clear text, and rather redirect user to the contact form. Signed-off-by: Marek PikuĊ‚a --- layouts/partials/sections/hero/social.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/layouts/partials/sections/hero/social.html b/layouts/partials/sections/hero/social.html index 04761f8ca..8a36767e7 100644 --- a/layouts/partials/sections/hero/social.html +++ b/layouts/partials/sections/hero/social.html @@ -1,7 +1,10 @@ {{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }} - @@ -9,9 +12,12 @@ {{ range .Site.Params.hero.socialLinks.customIcons }} - {{ end }} - \ No newline at end of file +