diff options
author | Sebastian Pech <windows@spech.de> | 2020-02-25 10:24:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 10:24:11 +0300 |
commit | 0beaae130a649742803d19c8e90769677d42228a (patch) | |
tree | 3aeb5289baea3781c45e6d1352708a1f2bfbdac0 | |
parent | 580b257178668f9fe91e5e737b1f98d47b410d59 (diff) | |
parent | e0e422591fea5db5ce7e07e39a114e368e35442a (diff) |
Merge pull request #2 from LeafHacker/discord
Added discord support to social
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/social.html | 4 |
3 files changed, 6 insertions, 0 deletions
@@ -245,6 +245,7 @@ Icons for Social Media. Add the block to the config. snapchat = "" pinterest = "" telegram = "" + discord = "" # invite link # Email email = "" ``` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index af08f5f..65c1311 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -104,6 +104,7 @@ theme="materialize-bp-hugo-theme" snapchat = "" pinterest = "" telegram = "" + discord = "" # invite link # Email email = "" diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 70a824b..cb2cfcf 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -126,6 +126,10 @@ <li class="list-inline-item"><a href="https://telegram.me/{{.}}" target="_blank" rel="noopener noreferrer" title="telegram" class="fab fa-telegram fa-2x white-text"></a></li> {{ end }} +{{ with .Site.Social.discord }} + <li class="list-inline-item"><a href="{{.}}" target="_blank" rel="noopener noreferrer" title="Discord" class="fab fa-discord fa-2x white-text"></a></li> +{{ end }} + {{ with .Site.Social.twitch }} <li class="list-inline-item"><a href="https://twitch.tv/{{.}}" target="_blank" rel="noopener noreferrer" title="twitch" class="fab fa-twitch fa-2x white-text"></a></li> {{ end }} |