From 72aef3d01b44a3efc3a9fac78ab5f58072569ff9 Mon Sep 17 00:00:00 2001 From: Hadi Sinaee <3697216+hadisinaee@users.noreply.github.com> Date: Sun, 13 Jun 2021 12:17:21 -0700 Subject: Adds LinkedIn and Fixes Bugs (#40) * chore: add linkedin to socials * chore: add alias for projects website name Co-authored-by: Hadi Sinaee --- exampleSite/content/about/_index.md | 1 + exampleSite/content/projects/proj1.md | 2 ++ layouts/partials/about/introduction.html | 6 ++++++ layouts/partials/projects/projects.html | 5 ++++- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md index 43a2218..1ef7274 100644 --- a/exampleSite/content/about/_index.md +++ b/exampleSite/content/about/_index.md @@ -12,6 +12,7 @@ socials: twitter: "HadiSinaee" github: "hadisinaee" facebook: "hadisinaee" + linkedin: "hadisinaee" twitch: "hadisinaee" google_scholar: "hadisinaee" diff --git a/exampleSite/content/projects/proj1.md b/exampleSite/content/projects/proj1.md index f0b8759..1ce3d59 100644 --- a/exampleSite/content/projects/proj1.md +++ b/exampleSite/content/projects/proj1.md @@ -5,6 +5,8 @@ date: "2018-05-18" links: website: 'https://github.com/hadisinaee/avicenna' + alias: link_name_here + --- [See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/layouts/partials/about/introduction.html b/layouts/partials/about/introduction.html index 5eaab79..2833e9c 100644 --- a/layouts/partials/about/introduction.html +++ b/layouts/partials/about/introduction.html @@ -43,6 +43,7 @@ {{ $twitter := index $aboutPage.Params.socials "twitter"}} {{ $twitch := index $aboutPage.Params.socials "twitch"}} {{ $github := index $aboutPage.Params.socials "github"}} + {{ $linkedin := index $aboutPage.Params.socials "linkedin"}} {{ $cv := $aboutPage.Params.cv }} @@ -70,6 +71,11 @@ {{end}} + {{ if $linkedin }} + + + + {{end}} {{ if $twitch }} diff --git a/layouts/partials/projects/projects.html b/layouts/partials/projects/projects.html index 7cc04a5..5711eeb 100644 --- a/layouts/partials/projects/projects.html +++ b/layouts/partials/projects/projects.html @@ -18,7 +18,10 @@ {{ if $links }}
{{ if $links.website }} - website + + {{if $links.alias}} {{$links.alias}} {{else}} website {{end}} + + {{end}}
{{end}} -- cgit v1.2.3