From 004112a73780b667dbc371cca2ff6f417a59714f Mon Sep 17 00:00:00 2001 From: OJWatson Date: Mon, 25 Nov 2024 18:23:21 +0000 Subject: [PATCH] Correction for when there are no links provided --- _helpers/make_participants.R | 7 ++++++- participants/jeanette-dawa.qmd | 4 ++-- participants/kemunto-ogutu.qmd | 3 +-- participants/oliver-watson.qmd | 2 +- participants/paula-christen.qmd | 4 ++-- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/_helpers/make_participants.R b/_helpers/make_participants.R index c6d1b30..c80d639 100644 --- a/_helpers/make_participants.R +++ b/_helpers/make_participants.R @@ -66,6 +66,8 @@ make_qmd <- function(headshot, return(NULL) } else { return( + if (name == "googlescholar") name <- "Google Scholar" + if (name == "personal") name <- "Personal Website" make_link_three(icon = name, text = stringr::str_to_title(name), href = x) ) } @@ -79,6 +81,9 @@ make_qmd <- function(headshot, parse_link(personal), parse_link(github) ) + if (is.null(ll2)) { + ll$links <- NULL + } # make the end list ll3 <- list( @@ -97,7 +102,7 @@ pages <- list("jd" = make_qmd(headshot = to_add[1], role = "Organiser", googlescholar = "https://scholar.google.com/citations?user=L1I0WJkAAAAJ&hl=en", linkedin = "https://www.linkedin.com/in/jeanette-dawa/"), "ko" = make_qmd(headshot = to_add[2], role = "Organiser", - bio = "Kemunto is a communications professional working for the Center for Epidemiological Modeling and Analysis (CEMA) in the Health Communications department."), + bio = "Kemunto is a communications professional working for the Center for Epidemiological Modelling and Analysis (CEMA) in the Health Communications department."), "mn" = make_qmd(headshot = to_add[3], role = "Organiser", bio = "Mutono is a data scientist currently using applied epidemiological modelling techniques to provide evidence for control and elimination of Neglected Tropical Diseases.", googlescholar = "https://scholar.google.com/citations?user=DE4gTQYAAAAJ&hl=en"), diff --git a/participants/jeanette-dawa.qmd b/participants/jeanette-dawa.qmd index 3f051c2..060d3af 100644 --- a/participants/jeanette-dawa.qmd +++ b/participants/jeanette-dawa.qmd @@ -10,8 +10,8 @@ about: - icon: linkedin text: Linkedin href: https://www.linkedin.com/in/jeanette-dawa/ - - icon: googlescholar - text: Googlescholar + - icon: google + text: Google Scholar href: https://scholar.google.com/citations?user=L1I0WJkAAAAJ&hl=en --- diff --git a/participants/kemunto-ogutu.qmd b/participants/kemunto-ogutu.qmd index 186722e..ac3eaa1 100644 --- a/participants/kemunto-ogutu.qmd +++ b/participants/kemunto-ogutu.qmd @@ -6,7 +6,6 @@ categories: - Organiser about: template: jolla - links: --- -Kemunto is a communications professional working for the Center for Epidemiological Modeling and Analysis (CEMA) in the Health Communications department. +Kemunto is a communications professional working for the Center for Epidemiological Modelling and Analysis (CEMA) in the Health Communications department. diff --git a/participants/oliver-watson.qmd b/participants/oliver-watson.qmd index d47dc9f..73747c3 100644 --- a/participants/oliver-watson.qmd +++ b/participants/oliver-watson.qmd @@ -8,7 +8,7 @@ about: template: jolla links: - icon: twitter - text: twitter + text: Twitter href: https://x.com/ojwatson92 - icon: github text: Github diff --git a/participants/paula-christen.qmd b/participants/paula-christen.qmd index 469fa11..b891349 100644 --- a/participants/paula-christen.qmd +++ b/participants/paula-christen.qmd @@ -8,13 +8,13 @@ about: template: jolla links: - icon: twitter - text: twitter + text: Twitter href: https://x.com/paulachristen - icon: github text: Github href: https://github.com/paulachristen - icon: linkedin - text: linkedin + text: Linkedin href: https://www.linkedin.com/in/paula-christen/ ---