From 295fdf43e90fe69072f8f26adfe8d4425fbe731d Mon Sep 17 00:00:00 2001 From: Sarthak Tripathi <11666024+Vehemos@users.noreply.github.com> Date: Mon, 21 Aug 2023 05:22:20 +0530 Subject: [PATCH] Add support for LinkedIn in Social Media links - Add LinkedIn hyperlink under Socials in footer.html - Update README.md with a new entry in 'Socials' under 'Site Parameters' - Update config.yaml with LinkedIn entry under social website links. --- README.md | 1 + exampleSite/config.yaml | 1 + layouts/partials/footer.html | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index ccc383a..1a8a1fb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 38ff42a..9fe28a2 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4d0ea85..2a3d96d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -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>