From 4b8985ad1b9845691d0146f42981bb06491578ef Mon Sep 17 00:00:00 2001 From: Regis Philibert Date: Thu, 2 Dec 2021 15:10:14 -0500 Subject: [PATCH] Add tiktok --- assets/ananke/socials/tiktok.svg | 3 + .../socials/GetBuiltInServicesDefaults.html | 3 + layouts/partials/social-follow.html | 99 +++---------------- 3 files changed, 19 insertions(+), 86 deletions(-) create mode 100644 assets/ananke/socials/tiktok.svg diff --git a/assets/ananke/socials/tiktok.svg b/assets/ananke/socials/tiktok.svg new file mode 100644 index 0000000..5c265c9 --- /dev/null +++ b/assets/ananke/socials/tiktok.svg @@ -0,0 +1,3 @@ + + + diff --git a/layouts/partials/func/socials/GetBuiltInServicesDefaults.html b/layouts/partials/func/socials/GetBuiltInServicesDefaults.html index 06a81e9..b61fe5d 100644 --- a/layouts/partials/func/socials/GetBuiltInServicesDefaults.html +++ b/layouts/partials/func/socials/GetBuiltInServicesDefaults.html @@ -67,4 +67,7 @@ rss: label: RSS color: '#ff6f1a' + tiktok: + label: TikTok + color: '#fe2c55' ` | transform.Unmarshal) }} \ No newline at end of file diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index 63cfe69..e94015b 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -1,86 +1,13 @@ - -{{ $icon_size := "32px" }} -{{ with .Param "stackoverflow" }} - - {{ partial "svg/stackoverflow.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ 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 "keybase" }} - - {{ partial "svg/keybase.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" . -}} - -{{ end }} -{{ with .Param "mastodon" }} - - {{ partial "svg/mastodon.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "slack" }} - - {{ partial "svg/slack.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "rss" }} - - {{ partial "svg/rss.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} -{{ with .Param "tiktok" }} - - {{ partial "svg/tiktok.svg" (dict "size" $icon_size) }} - {{- partial "new-window-icon.html" . -}} - -{{ end }} +{{ $socials := partialCached "func/socials/Get" "socials/Get" }} +
+ {{ range $socials }} + + {{ with .icon }} + {{ . }} + {{ else }} + {{ .label }} + {{ end }} + {{- partial "new-window-icon.html" . -}} + + {{ end }} +
\ No newline at end of file