Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadi Sinaee <3697216+hadisinaee@users.noreply.github.com>2021-06-13 22:17:21 +0300
committerGitHub <noreply@github.com>2021-06-13 22:17:21 +0300
commit72aef3d01b44a3efc3a9fac78ab5f58072569ff9 (patch)
tree841d2211d61521674c0b51784c09343e7ec7ce1b
parent6770c86af2a4845e6a910fe7d0436bffcbca658b (diff)
Adds LinkedIn and Fixes Bugs (#40)
* chore: add linkedin to socials * chore: add alias for projects website name Co-authored-by: Hadi Sinaee <sinaee@cs.ubc.ca>
-rw-r--r--exampleSite/content/about/_index.md1
-rw-r--r--exampleSite/content/projects/proj1.md2
-rw-r--r--layouts/partials/about/introduction.html6
-rw-r--r--layouts/partials/projects/projects.html5
4 files changed, 13 insertions, 1 deletions
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 @@
</a>
{{end}}
+ {{ if $linkedin }}
+ <a class="main_color" href='https://linkedin.com/in/{{$linkedin}}' target="_blank">
+ <i data-feather="linkedin"></i>
+ </a>
+ {{end}}
{{ if $twitch }}
<a class="main_color" href='https://twitch.com/{{$twitch}}' target="_blank">
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 }}
<div class="section-2 w-100">
{{ if $links.website }}
- <a class="main_color text-decoration-none rounded " href="{{$links.git}}" target="_blank">website</a>
+ <a class="main_color text-decoration-none rounded " href="{{$links.website}}" target="_blank">
+ {{if $links.alias}} {{$links.alias}} {{else}} website {{end}}
+
+ </a>
{{end}}
</div>
{{end}}