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 %}