aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/social_links.html7
1 files changed, 1 insertions, 6 deletions
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 }}
>
- <i class="{{ $pack }} {{ $pack_prefix }}-{{ .icon }}"></i>
+ <i class="{{ .icon_class }}"></i>
</a>
{{ end }}