From 5aaee3809df825cca664683bbb49b1fb1c01a268 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 1 Jun 2023 17:18:23 -0400 Subject: [PATCH 1/3] Create YAML tables from people.md --- people.yml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 people.yml diff --git a/people.yml b/people.yml new file mode 100644 index 0000000..4533832 --- /dev/null +++ b/people.yml @@ -0,0 +1,72 @@ +--- +- PI: + - name: Russ Poldrack + website: https://poldrack.github.io + +- Research Scientists: + - name: Patrick Bissett + - name: Joshua Buckholtz + - name: Jeanette Mumford + +- Postdoctoral Scholars: + - name: Michael Demidenko + - name: Elizabeth DuPre + - name: Paul Jaffe + - name: Anita Jwa + - name: Armin Thomas + +- Graduate Students: + - name: Austin Brotman + - name: Rastko Ciric + - name: Lynde Folsom + - name: Grace Huckins + - name: Anna Xu + +- Research Coordinators: + - name: Logan Bennett + - name: Jaime Rios + - name: Sunjae Shim + +- Software Developers: + - name: Ross Blair + - name: Nell Hardcastle + - name: Mathias Goncalves + - name: Chris Markiewicz + +- Lab Alumni: + - name: Adam Aron + - name: Akram Bakkour + - name: Mei-Yen Chen + - name: Naomi Cherne + - name: Jessica Cohen + - name: Eliza Congdon + - name: Tyler Davis + - name: Joke Durnez + - name: Ian Eisenberg + - name: Ayse Zeynep Enkavi + - name: Oscar Esteban + - name: Karin Foerde + - name: Adriana Galvan + - name: Marta Garrido + - name: Chris Gorgolewski + - name: Koji Jimura + - name: Don Kalar + - name: Sanmi Koyejo + - name: Agatha Lenartowicz + - name: Romy Lorenz + - name: Dana Mastrovito + - name: Craig Moodie + - name: Martin Norgaard + - name: Angela Rizk-Jackson + - name: Ajay Satpute + - name: Tom Schonberg + - name: Mac Shine + - name: Vanessa Sochat + - name: Elena Stover + - name: William Thompson + - name: Matilde Vaghi + - name: Jonathan Walters + - name: Corey White + - name: Eliott Wimmer + - name: Alara Wright + - name: Gui Xue From 76f6bdde7eed2b5db8b3f91a2a15d52e045751d6 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 1 Jun 2023 17:54:58 -0400 Subject: [PATCH 2/3] Create people page from a YAML table --- people.ejs | 13 +++++++++ people.md | 81 +++--------------------------------------------------- people.yml | 21 +++++++++----- 3 files changed, 31 insertions(+), 84 deletions(-) create mode 100644 people.ejs diff --git a/people.ejs b/people.ejs new file mode 100644 index 0000000..ce4b2f4 --- /dev/null +++ b/people.ejs @@ -0,0 +1,13 @@ +```{=html} +<% for (const item of items) { %> +

<%- item.group %>

+ +<% } %> +``` diff --git a/people.md b/people.md index 2089710..ed93744 100644 --- a/people.md +++ b/people.md @@ -1,83 +1,10 @@ --- title: "Poldracklab members" +listing: + template: people.ejs + contents: + - people.yml format: html: page-layout: full --- - -## PI -- [Russ Poldrack](http://poldrack.github.io) - -## Research Scientists - -- Patrick Bissett -- Joshua Buckholtz -- Jeanette Mumford - -## Postdoctoral scholars - -- Michael Demidenko -- Elizabeth DuPre -- Paul Jaffe -- Anita Jwa -- Armin Thomas - -## Graduate Students - -- Austin Brotman -- Rastko Ciric -- Lynde Folsom -- Grace Huckins -- Anna Xu - -## Research Coordinators - -- Logan Bennett -- Jaime Rios -- Sunjae Shim - -## Software Developers - -- Ross Blair -- Nell Hardcastle -- Mathias Goncalves -- Chris Markiewicz - -## Lab Alumni - -- Adam Aron -- Akram Bakkour -- Mei-Yen Chen -- Naomi Cherne -- Jessica Cohen -- Eliza Congdon -- Tyler Davis -- Joke Durnez -- Ian Eisenberg -- Ayse Zeynep Enkavi -- Oscar Esteban -- Karin Foerde -- Adriana Galvan -- Marta Garrido -- Chris Gorgolewski -- Koji Jimura -- Don Kalar -- Sanmi Koyejo -- Agatha Lenartowicz -- Romy Lorenz -- Dana Mastrovito -- Craig Moodie -- Martin Norgaard -- Angela Rizk-Jackson -- Ajay Satpute -- Tom Schonberg -- Mac Shine -- Vanessa Sochat -- Elena Stover -- William Thompson -- Matilde Vaghi -- Jonathan Walters -- Corey White -- Eliott Wimmer -- Alara Wright -- Gui Xue \ No newline at end of file diff --git a/people.yml b/people.yml index 4533832..9cdace5 100644 --- a/people.yml +++ b/people.yml @@ -1,39 +1,46 @@ --- -- PI: +- group: PI + members: - name: Russ Poldrack website: https://poldrack.github.io -- Research Scientists: +- group: Research Scientists + members: - name: Patrick Bissett - name: Joshua Buckholtz - name: Jeanette Mumford -- Postdoctoral Scholars: +- group: Postdoctoral Scholars + members: - name: Michael Demidenko - name: Elizabeth DuPre - name: Paul Jaffe - name: Anita Jwa - name: Armin Thomas -- Graduate Students: +- group: Graduate Students + members: - name: Austin Brotman - name: Rastko Ciric - name: Lynde Folsom - name: Grace Huckins - name: Anna Xu -- Research Coordinators: +- group: Research Coordinators + members: - name: Logan Bennett - name: Jaime Rios - name: Sunjae Shim -- Software Developers: +- group: Software Developers + members: - name: Ross Blair - name: Nell Hardcastle - name: Mathias Goncalves - name: Chris Markiewicz -- Lab Alumni: +- group: Lab Alumni + members: - name: Adam Aron - name: Akram Bakkour - name: Mei-Yen Chen From 8da67a0a4ccca10e2500c299eb57c5dd731a6ed5 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 1 Jun 2023 21:04:09 -0400 Subject: [PATCH 3/3] Add templating for links, start with ORCID as demo --- people.ejs | 14 ++++++++++---- people.md | 10 ++++++++++ people.yml | 2 ++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/people.ejs b/people.ejs index ce4b2f4..9b1ff5a 100644 --- a/people.ejs +++ b/people.ejs @@ -3,10 +3,16 @@

<%- item.group %>

<% } %> diff --git a/people.md b/people.md index ed93744..4998348 100644 --- a/people.md +++ b/people.md @@ -4,6 +4,16 @@ listing: template: people.ejs contents: - people.yml + template-params: + # For each icon, add the base URL, icon URL and alt text + # The base URL will be concatenated with the field in the member definition + # For example, ORCID will produce links like + # {orcid.alt} + # ORCID + orcid: + base_url: https://orcid.org/ + icon: https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png + alt: ORCID format: html: page-layout: full diff --git a/people.yml b/people.yml index 9cdace5..b90ec67 100644 --- a/people.yml +++ b/people.yml @@ -3,6 +3,7 @@ members: - name: Russ Poldrack website: https://poldrack.github.io + orcid: 0000-0001-6755-0259 - group: Research Scientists members: @@ -38,6 +39,7 @@ - name: Nell Hardcastle - name: Mathias Goncalves - name: Chris Markiewicz + orcid: 0000-0002-6533-164X - group: Lab Alumni members: