From 3710f7e92a02438ae8508554c0d7a9ea763cc6ba Mon Sep 17 00:00:00 2001 From: Joel S Aufrecht Date: Tue, 16 Nov 2021 06:15:28 -0800 Subject: [PATCH] added tiktok to available social media links (#444) --- assets/ananke/css/_social-icons.css | 6 +++++- exampleSite/config.toml | 2 ++ layouts/partials/social-follow.html | 6 ++++++ layouts/partials/svg/tiktok.svg | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/svg/tiktok.svg diff --git a/assets/ananke/css/_social-icons.css b/assets/ananke/css/_social-icons.css index 148d99fb0..a042f79ab 100644 --- a/assets/ananke/css/_social-icons.css +++ b/assets/ananke/css/_social-icons.css @@ -1,4 +1,4 @@ -.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .keybase, .linkedin, .medium, .mastodon, .slack, .stackoverflow, .rss { +.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .keybase, .linkedin, .medium, .mastodon, .slack, .stackoverflow, .rss, .tiktok { fill: #BABABA; } @@ -62,3 +62,7 @@ .rss:hover{ fill: #ff6f1a; } + +.tiktok:hover{ + fill: #FE2C55; +} diff --git a/exampleSite/config.toml b/exampleSite/config.toml index be77ee4cc..04e2b87f2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -42,6 +42,8 @@ enableRobotsTXT = true slack = "" stackoverflow = "" rss = "" + tiktok = "" + # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" background_color_class = "bg-black" featured_image = "/images/gohugo-default-sample-hero-image.jpg" diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index 0755ce2e8..63cfe69cb 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -78,3 +78,9 @@ {{- partial "new-window-icon.html" . -}} {{ end }} +{{ with .Param "tiktok" }} + + {{ partial "svg/tiktok.svg" (dict "size" $icon_size) }} + {{- partial "new-window-icon.html" . -}} + +{{ end }} diff --git a/layouts/partials/svg/tiktok.svg b/layouts/partials/svg/tiktok.svg new file mode 100644 index 000000000..18e5505c7 --- /dev/null +++ b/layouts/partials/svg/tiktok.svg @@ -0,0 +1,6 @@ + + +