Add social account list

This commit is contained in:
ItsDrike 2021-08-25 12:28:20 +02:00
parent 71fc71e30a
commit d63710c629
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 39 additions and 0 deletions

36
data/social.yml Normal file
View file

@ -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

View file

@ -0,0 +1,3 @@
{{ $socialDetail := index .Site.Data.social.accounts (.Get 0) }}
<a href="{{ $socialDetail.link }}" title="{{ $socialDetail.name }} account">{{ $socialDetail.username }}</a>