From 50d15478b391d8404cab734a590845252a5b0ef4 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Wed, 26 Dec 2018 11:16:03 -0500 Subject: [PATCH] Improve social link accessibility (#147) 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 f087fa7..489e8cd 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" . -}}