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

github.com/spech66/materialize-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2020-02-25 10:24:11 +0300
committerGitHub <noreply@github.com>2020-02-25 10:24:11 +0300
commit0beaae130a649742803d19c8e90769677d42228a (patch)
tree3aeb5289baea3781c45e6d1352708a1f2bfbdac0
parent580b257178668f9fe91e5e737b1f98d47b410d59 (diff)
parente0e422591fea5db5ce7e07e39a114e368e35442a (diff)
Merge pull request #2 from LeafHacker/discord
Added discord support to social
-rw-r--r--README.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social.html4
3 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1906500..8814104 100644
--- a/README.md
+++ b/README.md
@@ -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 }}