From 2c32ea76d498e00a4cf9e560fae3163095fd1b86 Mon Sep 17 00:00:00 2001 From: Kevin Bonham Date: Wed, 11 Jun 2025 10:13:03 -0400 Subject: [PATCH 1/2] Add github handles --- people/kevin.md | 1 + people/yehor.md | 1 + 2 files changed, 2 insertions(+) diff --git a/people/kevin.md b/people/kevin.md index ba362c5..ac0e1d7 100644 --- a/people/kevin.md +++ b/people/kevin.md @@ -6,6 +6,7 @@ vitae="Benevolant dictator" portrait="/assets/kevin_headshot.png" email="kevin.bonham@tuftsmedicine.org" joined = Date(2025,02,01) +github = "@kescobo" +++ Kevin is interested in all things computational, diff --git a/people/yehor.md b/people/yehor.md index 2174a8e..16cf28a 100644 --- a/people/yehor.md +++ b/people/yehor.md @@ -5,6 +5,7 @@ title="Summer intern" vitae="Deep learner" portrait="/assets/yehor_headshot.png" email="ymishchyriak@wesleyan.edu" +gituhub="@" joined = Date(2025,06,01) +++ From 1824ed1fcd24f2ede57fa2cd1eea6642bdc04d35 Mon Sep 17 00:00:00 2001 From: Kevin Bonham Date: Wed, 11 Jun 2025 11:08:38 -0400 Subject: [PATCH 2/2] Add fontawesome CDN, add githubs to profile --- _css/cards.css | 3 +-- _layout/head.html | 1 + people/kevin.md | 4 +++- people/test_person.md | 1 + people/yehor.md | 2 +- utils.jl | 12 +++++++++++- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/_css/cards.css b/_css/cards.css index 366dd4e..3162c10 100644 --- a/_css/cards.css +++ b/_css/cards.css @@ -135,8 +135,7 @@ .profile-vitae { font-style: italic; - margin-bottom: 2rem; - padding: 0 1rem; + margin-bottom: 1rem; } .profile-content { diff --git a/_layout/head.html b/_layout/head.html index da3da08..74225ca 100644 --- a/_layout/head.html +++ b/_layout/head.html @@ -6,6 +6,7 @@ + {{if hasmath}} {{insert head_katex.html }} {{end}} {{if hascode}} {{insert head_highlight.html }} {{end}} {{insert style.html}} diff --git a/people/kevin.md b/people/kevin.md index ac0e1d7..c9a1aab 100644 --- a/people/kevin.md +++ b/people/kevin.md @@ -6,9 +6,11 @@ vitae="Benevolant dictator" portrait="/assets/kevin_headshot.png" email="kevin.bonham@tuftsmedicine.org" joined = Date(2025,02,01) -github = "@kescobo" +github = "kescobo" +++ Kevin is interested in all things computational, and will bend your ear about `git`, `julia`, or fermentation. + + diff --git a/people/test_person.md b/people/test_person.md index d4fd82e..fddcb79 100644 --- a/people/test_person.md +++ b/people/test_person.md @@ -3,6 +3,7 @@ using Dates name = "Arthur Dent" title = "Hitchhiker" email = "arthur@earth.co.uk" +github = "adent" joined = Date(2025,02,24) alumn = true +++ diff --git a/people/yehor.md b/people/yehor.md index 16cf28a..0e38f13 100644 --- a/people/yehor.md +++ b/people/yehor.md @@ -5,7 +5,7 @@ title="Summer intern" vitae="Deep learner" portrait="/assets/yehor_headshot.png" email="ymishchyriak@wesleyan.edu" -gituhub="@" +github="yehor-Mishchyriak" joined = Date(2025,06,01) +++ diff --git a/utils.jl b/utils.jl index c99fc7c..adb1c0e 100644 --- a/utils.jl +++ b/utils.jl @@ -27,7 +27,11 @@ function hfun_list_people() node("h2", node("a", href=p.href, p.name)), node("div", class="card-title", p.title), node("div", class="card-vitae", p.vitae), - node("div", class="card-email", node("a", href="mailto:$(p.email)", p.email)), + node("div", class="card-github", + node("a", href=joinpath("https://github.com", p.github), + node("i", class="fa-brands fa-github-square"), + " $(p.github)") + ), node("p", node("a", href=p.href, node("button", class="card-button", "Details") ) @@ -49,6 +53,7 @@ function person_info(rp) portrait=getvarfrom(:portrait, rp, "/assets/portrait_placeholder.png"), vitae=getvarfrom(:vitae, rp), alumn=getvarfrom(:alumn, rp, false), + github=getvarfrom(:github, rp), href="/$(splitext(rp)[1])", tags=get_page_tags(rp) ) @@ -78,6 +83,11 @@ function hfun_person_header() node("h1", class="profile-name", person.name), node("div", class="profile-title", person.title), node("div", class="profile-vitae", person.vitae), + node("div", class="card-github", + node("a", href=joinpath("https://github.com", person.github), + node("i", class="fa-brands fa-github-square"), + " $(person.github)") + ), node("div", class="profile-email", node("a", href="mailto:$(person.email)", person.email) ),