Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social buttons- Add Tiktok; Improve Stack Overflow appearance #77

Merged
merged 2 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ DefaultContentLanguageInSubdir = true
reddit = "https://reddit.com/"
dribbble = "https://dribbble.com/"
stackoverflow = "https://stackoverflow.com/"
tiktok = "https://tiktok.com"

[[menu.main]]
name = "About"
Expand Down
32 changes: 26 additions & 6 deletions layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,19 +279,39 @@
>
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-brand-stackoverflow"
width="24"
height="24"
width="23"
height="23"
viewBox="-135 22 32 38"
stroke-width="1.5"
stroke-width="0.2"
stroke="currentColor"
fill="none"
fill="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<polygon points="-108.5,56.2 -108.5,46.3 -105.2,46.3 -105.2,59.5 -135,59.5 -135,46.3 -131.7,46.3 -131.7,56.2 "/>
<path d="M-128,45.4l16.2,3.4l0.7-3.2l-16.2-3.4L-128,45.4z M-125.9,37.6l15,7l1.4-3l-15-7L-125.9,37.6z M-121.7,30.2l12.7,10.6l2.1-2.5l-12.7-10.6L-121.7,30.2z M-113.5,22.4l-2.7,2l9.9,13.3l2.7-2L-113.5,22.4z M-128.4,52.9h16.6 v-3.3h-16.6V52.9z"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 9l5 3l-5 3z" />
</svg>
</a>
</li>
{{ end }}
{{ with .Site.Params.homepage.social.tiktok }}
<li>
<a
href="{{.}}"
target="_blank"
rel="noopener"
aria-label="tiktok"
class="p-2 inline-block rounded-full border border-transparent text-gray-500 hover:text-gray-800 hover:border-gray-800 cursor-pointer transition-colors dark:text-gray-600 dark:hover:border-gray-300 dark:hover:text-gray-300"
>
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-brand-tiktok"
width="23"
height="23"
viewBox="0 0 448 512"
stroke-width="30"
stroke="currentColor"
fill="none">
<path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"/>
</svg>
</a>
</li>
Expand Down