diff options
author | Joel S Aufrecht <junkmail-github@aufrecht.org> | 2021-11-16 17:15:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 17:15:28 +0300 |
commit | 3710f7e92a02438ae8508554c0d7a9ea763cc6ba (patch) | |
tree | ac9a78526d10b8bf0357831ab45bc035cdbb7d83 | |
parent | 869b03ea78b6238febe54cae970b23312d099ff6 (diff) |
added tiktok to available social media links (#444)
-rw-r--r-- | assets/ananke/css/_social-icons.css | 6 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/social-follow.html | 6 | ||||
-rw-r--r-- | layouts/partials/svg/tiktok.svg | 6 |
4 files changed, 19 insertions, 1 deletions
diff --git a/assets/ananke/css/_social-icons.css b/assets/ananke/css/_social-icons.css index 148d99f..a042f79 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 be77ee4..04e2b87 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 0755ce2..63cfe69 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -78,3 +78,9 @@ {{- partial "new-window-icon.html" . -}} </a> {{ end }} +{{ with .Param "tiktok" }} +<a href="{{ . }}" target="_blank" class="link-transition tiktok link dib z-999 pt3 pt0-l mr1" title="TikTok link" rel="noopener" aria-label="follow on TikTok——Opens in a new window"> + {{ partial "svg/tiktok.svg" (dict "size" $icon_size) }} + {{- partial "new-window-icon.html" . -}} +</a> +{{ end }} diff --git a/layouts/partials/svg/tiktok.svg b/layouts/partials/svg/tiktok.svg new file mode 100644 index 0000000..18e5505 --- /dev/null +++ b/layouts/partials/svg/tiktok.svg @@ -0,0 +1,6 @@ +<svg{{ with .size }} height="{{ . }}" {{ end }} style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" + width="{{ .size }}" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <path + d="m 15.433,1.91 c 7.726455,0 14,6.265147 14,14 0,7.726455 -6.265147,14 -14,14 -7.7264547,0 -14,-6.265147 -14,-14 0,-7.7264547 6.265147,-14 14,-14 z m 3.031794,6.2483503 c 0.260348,2.2003597 1.486502,3.5104977 3.611277,3.6448707 v 2.469107 c -1.234553,0.117576 -2.317936,-0.285543 -3.577684,-1.041392 v 4.619076 c 0,5.878824 -6.407918,7.709658 -8.9778045,3.5021 -1.6544691,-2.70426 -0.6382724,-7.466107 4.6694665,-7.65087 v 2.611877 c -0.40312,0.06719 -0.831434,0.167967 -1.226155,0.30234 -1.184163,0.394721 -1.847631,1.15057 -1.662868,2.469106 0.361128,2.527895 4.997001,3.275345 4.610678,-1.662867 V 8.1667487 h 2.561488 z" + style="fill-rule:evenodd;clip-rule:evenodd;"/> +</svg> |