From e3676dc9a5024c6fcd0c8dcd15800ef14c78389f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 20 Jan 2025 12:17:32 +0100 Subject: simplify social icons --- layouts/partials/social_links.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/social_links.html b/layouts/partials/social_links.html index 0951770..9758891 100644 --- a/layouts/partials/social_links.html +++ b/layouts/partials/social_links.html @@ -1,9 +1,4 @@ {{ range .social }} - {{ $pack := or .icon_pack "fas" }} - {{ $pack_prefix := $pack }} - {{ if in (slice "fab" "fas" "far" "fal") $pack }} - {{ $pack_prefix = "fa" }} - {{ end }} {{ $link := .link }} {{ $scheme := (urls.Parse $link).Scheme }} {{ $target := "" }} @@ -16,6 +11,6 @@ href="{{ $link | safeURL }}" {{ $target | safeHTMLAttr }} > - + {{ end }} -- cgit v1.2.3