From e3cdc13a11d01d0b91a230ec0cf77ef6ff2e7081 Mon Sep 17 00:00:00 2001 From: NewAlexandria Date: Mon, 7 Aug 2023 17:49:39 -0400 Subject: [PATCH] add discord links for sidebar --- _includes/components/social-list-item.html | 4 ++++ _includes/components/social.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/_includes/components/social-list-item.html b/_includes/components/social-list-item.html index 6b61bb9aca3..0fec74d246f 100644 --- a/_includes/components/social-list-item.html +++ b/_includes/components/social-list-item.html @@ -22,6 +22,10 @@ {% assign name = "GitHub" %} {% assign icon = "icon-github" %} {% assign prep = "https://github.com/" %} + {% elsif platform == "discord" %} + {% assign name = "Discord" %} + {% assign icon = "icon-bubble" %} + {% assign prep = "https://discord.gg/" %} {% endif %} {% endunless %} diff --git a/_includes/components/social.html b/_includes/components/social.html index edef27e91f5..f636a5fe7e1 100644 --- a/_includes/components/social.html +++ b/_includes/components/social.html @@ -15,6 +15,11 @@ {% include components/social-list-item.html platform="github" username=github_username %} {% endif %} + {% assign discord_server = author.discord.server | default: author.discord | default:site.discord.server | default:site.discord | default:site.discord_server %} + {% if discord_server %} + {% include components/social-list-item.html platform="discord" username=discord_server %} + {% endif %} + {% assign email = author.email | default: site.email %} {% if email %} {% include components/social-list-item.html platform="email" username=email %}