Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/LordMathis/hugo-theme-nix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Námešný <matus@namesny.com>2022-01-20 12:16:56 +0300
committerGitHub <noreply@github.com>2022-01-20 12:16:56 +0300
commit084eef29e66f6031dbc9e71db04684a1852390a0 (patch)
tree5209e4c77ff8dd3aa26415ec934024853fa8203f
parent4f2872784df4cb4ed0369734529336527427eec5 (diff)
parent863c9b418526de2771804a0b34b0580ed2d1a1f2 (diff)
Merge pull request #75 from Zsmith32/feature/twitch-idHEADmaster
adds twitch to socials
-rw-r--r--README.md1
-rw-r--r--layouts/partials/social.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index df763f0..d37b541 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,7 @@ Optionaly you can add any of these social networks to the \[params\] section.
StackOverflowID = "your_stackoverflow_id"
TelegramID = "your_telegram"
TwitterID = "your_twitter"
+ TwitchID = "your_twitch_username"
XingURL = "https://www.xing.com/profile/..."
# For youtube, since there are multiple path urls please add everything after https://youtube.com/ in channel url
YoutubeID = "c/your_youtube_id"
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index c63cb67..d73b9dd 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -44,6 +44,9 @@
<!-- For youtube, since there are multiple path urls please add everything after https://youtube.com/ in channel url -->
<a href="https://youtube.com/{{.}}" rel="me" title="Youtube"><i class="fab fa-youtube fa-3x" aria-hidden="true"></i></a>
{{ end }}
+{{ with .Site.Params.TwitchID }}
+<a href="https://twitch.tv/{{.}}" rel="me" title="Twitch"><i class="fab fa-twitch fa-3x" aria-hidden="true"></i></a>
+{{ end }}
{{ with .Site.Params.SpotifyID }}
<a href="https://open.spotify.com/user/{{.}}" rel="me" title="Spotify"><i class="fab fa-spotify fa-3x" aria-hidden="true"></i></a>
{{ end }}