Add support for LinkedIn in Social Media links (#13)

This commit is contained in:
Sarthak Tripathi 2023-09-07 19:15:56 +05:30 committed by GitHub
parent e206baefb3
commit 23b85481b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,7 @@ You can add links to your social media profile by using thoses parameters:
- `github`: string
- `gitlab`: string
- `twitter`: string
- `linkedin`: string
- `patreon`: string
- `youtube`: string
- `medium`: string

View file

@ -56,6 +56,7 @@ params:
# Please note that some of the value below are only provided as an exemple, perhaps the computed isn't valid
# github: slashformotion
# gitlab: slashformotion
# linkedin: <insert_here>
# twitter: slashformotion
# patreon: ''
# youtube: user/ChromeDevelopers # check the end of your youtube url https://www.youtube.com/<copy_this>

View file

@ -18,6 +18,10 @@
{{ if isset .Site.Params "twitter" }}
<li><a href="https://twitter.com/{{.Site.Params.twitter}}">Twitter</a></li>
{{ end }}
{{ if isset .Site.Params "linkedin" }}
<li><a href="https://linkedin.com/in/{{.Site.Params.linkedin}}">LinkedIn</a></li>
{{ end }}
{{ if isset .Site.Params "github" }}
<li><a href="https://github.com/{{.Site.Params.github}}">GitHub</a></li>