mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
feat: twitch social icon
This commit is contained in:
parent
8845854aa9
commit
b2de8fba62
@ -62,3 +62,7 @@
|
||||
.rss:hover{
|
||||
fill: #ff6f1a;
|
||||
}
|
||||
|
||||
.twitch:hover {
|
||||
fill: #772CE8;
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ enableRobotsTXT = true
|
||||
twitter = "https://twitter.com/GoHugoIO"
|
||||
instagram = ""
|
||||
youtube = ""
|
||||
twitch = ""
|
||||
github = ""
|
||||
gitlab = ""
|
||||
linkedin = ""
|
||||
|
@ -30,6 +30,12 @@
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "twitch" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition twitch link dib z-999 pt3 pt0-l mr1" title="Twitch link" rel="noopener" aria-label="follow on Twitch——Opens in a new window">
|
||||
{{ partial "svg/twitch.svg" (dict "size" $icon_size) }}
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .Param "linkedin" }}
|
||||
<a href="{{ . }}" target="_blank" class="link-transition linkedin link dib z-999 pt3 pt0-l mr1" title="LinkedIn link" rel="noopener" aria-label="follow on LinkedIn——Opens in a new window">
|
||||
{{ partial "svg/linkedin.svg" (dict "size" $icon_size) }}
|
||||
|
1
layouts/partials/svg/twitch.svg
Normal file
1
layouts/partials/svg/twitch.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2.149 0l-1.612 4.119v16.836h5.731v3.045h3.224l3.045-3.045h4.657l6.269-6.269v-14.686h-21.314zm19.164 13.612l-3.582 3.582h-5.731l-3.045 3.045v-3.045h-4.836v-15.045h17.194v11.463zm-3.582-7.343v6.262h-2.149v-6.262h2.149zm-5.731 0v6.262h-2.149v-6.262h2.149z" fill-rule="evenodd" clip-rule="evenodd"/></svg>
|
After Width: | Height: | Size: 394 B |
Loading…
x
Reference in New Issue
Block a user