aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-20 12:17:32 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-20 12:17:32 +0100
commite3676dc9a5024c6fcd0c8dcd15800ef14c78389f (patch)
treee0d1f33bb3240f8e33278cad5ecc9fc30793d01d /layouts
parentebc5ef7cc6b63c25ebb9143f8bbdd37c7b12055d (diff)
downloadhugo-minimalist-theme-e3676dc9a5024c6fcd0c8dcd15800ef14c78389f.tar.gz
hugo-minimalist-theme-e3676dc9a5024c6fcd0c8dcd15800ef14c78389f.tar.bz2
hugo-minimalist-theme-e3676dc9a5024c6fcd0c8dcd15800ef14c78389f.zip
simplify social icons
Diffstat (limited to 'layouts')
-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 }}