From d63710c629a1a68aac4a8967d156f03d2754b927 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 25 Aug 2021 12:28:20 +0200 Subject: [PATCH] Add social account list --- data/social.yml | 36 ++++++++++++++++++++++++++++++ layouts/shortcodes/sociallink.html | 3 +++ 2 files changed, 39 insertions(+) create mode 100644 data/social.yml create mode 100644 layouts/shortcodes/sociallink.html diff --git a/data/social.yml b/data/social.yml new file mode 100644 index 0000000..21c59c1 --- /dev/null +++ b/data/social.yml @@ -0,0 +1,36 @@ +--- +accounts: + github: + name: GitHub + username: ItsDrike + link: https://github.com/ItsDrike/ + icon: fab fa-github + + stack-overflow: + name: Stack Overflow + username: ItsDrike + link: https://stackoverflow.com/users/13306825/itsdrike + icon: fab fa-stack-overflow + + stack-exchange: + name: Stack Exchange + username: ItsDrike + link: https://meta.stackexchange.com/users/432633/itsdrike?tab=profile + icon: fab fa-stack-exchange + + pypi: + name: PyPI + username: ItsDrike + link: https://pypi.org/user/ItsDrike/ + icon: fab fa-python + + discord: + name: Discord + username: ItsDrike#5359 + link: https://discord.com/ + icon: fab fa-discord + + discord-server: + name: Codin' Nerds + username: Codin' Nerds + links: https://discord.gg/B8rf3xxgbJ diff --git a/layouts/shortcodes/sociallink.html b/layouts/shortcodes/sociallink.html new file mode 100644 index 0000000..50173e6 --- /dev/null +++ b/layouts/shortcodes/sociallink.html @@ -0,0 +1,3 @@ +{{ $socialDetail := index .Site.Data.social.accounts (.Get 0) }} + +{{ $socialDetail.username }}