From 13d4d554fe20bb41bf6ca45a5a88f6d8524c42ed Mon Sep 17 00:00:00 2001 From: budparr Date: Wed, 26 Dec 2018 11:15:36 -0500 Subject: [PATCH] Improve social link accessibility Keep in spirit with https://medium.com/@svinkle/why-let-someone-know-when-a-link-opens-a-new-window-8699d20ed3b1 but address issue #145 --- layouts/partials/social-follow.html | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index f087fa7b0..489e8cd7d 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -1,54 +1,49 @@ - {{ $icon_size := "32px" }} {{ with .Param "facebook" }} - + {{ partial "svg/facebook.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "twitter" }} - + {{ partial "svg/twitter.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "instagram" }} - + {{ partial "svg/instagram.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "youtube" }} - + {{ partial "svg/youtube.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "linkedin" }} - + {{ partial "svg/linkedin.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "github" }} - + {{ partial "svg/github.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "gitlab" }} - + {{ partial "svg/gitlab.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} {{ with .Param "medium" }} - + {{ partial "svg/medium.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}}