From 0fd21e2a3bafd2b6b82239ef7e3126a7b4ec8471 Mon Sep 17 00:00:00 2001 From: zjrohrbach <41758818+zjrohrbach@users.noreply.github.com> Date: Tue, 29 Dec 2020 22:03:46 -0500 Subject: [PATCH] Update social-follow.html fixed most of the capitalization issues by making use of `lower` hugo command. The only outstanding problem is that Stack Overflow will render as `StackOverflow` (one word). This could probably be fixed with a simple `if` statement --- layouts/partials/social-follow.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index 8e09334..aa20a0b 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -1,14 +1,14 @@ {{ $icon_size := "32px" }} -{{ $social_media := slice "stackoverflow" "facebook" "twitter" "instagram" "youtube" "linkedin" "github" "gitlab" "keybase" "medium" "mastodon" "slack" "rss" }} +{{ $social_media := slice "StackOverflow" "Facebook" "Twitter" "Instagram" "YouTube" "LinkedIn" "GitHub" "GitLab" "Keybase" "Medium" "Mastodon" "Slack" "RSS" }} {{ $dot_passthrough := . }} {{ range $social_media }} {{ $this_key := . }} {{ with $dot_passthrough.Param . }} - - {{ partial (print "svg/" $this_key ".svg") (dict "size" $icon_size) }} + + {{ partial (print "svg/" ($this_key | lower) ".svg") (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} {{ end }} -{{ end }} \ No newline at end of file +{{ end }}