From a29b1ddba5b9ce5ecd48f7e3ebc35ced0cd847fb Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 21 Jul 2022 14:52:04 -0500 Subject: [PATCH 01/15] 1st Community Directory WIP --- config.json | 3 +- content/people/0example/index.md | 20 +++++ content/people/assunta/index.md | 6 ++ src/templates/Person.vue | 125 +++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 content/people/0example/index.md create mode 100644 content/people/assunta/index.md create mode 100644 src/templates/Person.vue diff --git a/config.json b/config.json index 8d446ee3fd..cd235b2839 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,8 @@ "contentDir": "content", "collections": { "BareArticle": { "path": "/bare/", "type": "vue" }, - "Platform": { "path": "/use/", "type": "md" } + "Platform": { "path": "/use/", "type": "md" }, + "Person": { "path": "/people/", "type": "md" } }, "categories": { "/blog": "blog", diff --git a/content/people/0example/index.md b/content/people/0example/index.md new file mode 100644 index 0000000000..c33a8689b6 --- /dev/null +++ b/content/people/0example/index.md @@ -0,0 +1,20 @@ +--- +name: Person +subsites: ["eu"] +email: thing +phone: asdf +website: sadf +github: asdf +orcid: asdf +gitter: asdf +matrix: asdf +linkedin: asdf +twitter: asdf +google-scholar: asdf +researchgate: asdf +galaxy_help: asdf +location: +- city: asdf + country: asdf +image: +--- diff --git a/content/people/assunta/index.md b/content/people/assunta/index.md new file mode 100644 index 0000000000..02f57175b5 --- /dev/null +++ b/content/people/assunta/index.md @@ -0,0 +1,6 @@ +--- +name: Assunta DeSanto +subsites: [us] +github: assuntad23 +affiliation: psu +--- diff --git a/src/templates/Person.vue b/src/templates/Person.vue new file mode 100644 index 0000000000..8ca4ec450b --- /dev/null +++ b/src/templates/Person.vue @@ -0,0 +1,125 @@ + + + +query Person($path: String!) { + person(path: $path) { + id + name + email + phone + website + github + orcid + gitter + matrix + linkedin + twitter + subsites + google_scholar + researchgate + galaxy_help + location { + city + country + } + fileInfo { + path + } + } +} + + + + + From 6a20e924ee6ff8d0f84646ebd1dbbbdbc26022a6 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 21 Jul 2022 16:41:20 -0500 Subject: [PATCH 02/15] Fix some of the yaml structure and add better filler data. --- content/people/0example/index.md | 36 +++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/content/people/0example/index.md b/content/people/0example/index.md index c33a8689b6..0863fc5d45 100644 --- a/content/people/0example/index.md +++ b/content/people/0example/index.md @@ -1,20 +1,26 @@ --- -name: Person +name: Strong Bad subsites: ["eu"] -email: thing -phone: asdf -website: sadf -github: asdf -orcid: asdf -gitter: asdf -matrix: asdf -linkedin: asdf -twitter: asdf -google-scholar: asdf -researchgate: asdf -galaxy_help: asdf +email: sbad@homestarrunner.com +phone: (808) 867-5309 +website: homestarrunner.com +github: sbad +orcid: 0000-0002-1825-0097 +gitter: sbad +matrix: sbad +linkedin: strongbad +twitter: StrongBadActual +google-scholar: q5GpTJYAAAJZ +researchgate: Strong_Bad +galaxy_help: sbad +affiliations: +- id: cgnu + name: Crazy Go Nuts University location: -- city: asdf - country: asdf + city: The Stick + country: Strong Badia + geo: + lat: '0.0' + lon: '0.0' image: --- From 4b3aa6b541427c95ea53ff135fc809677a80df45 Mon Sep 17 00:00:00 2001 From: Assunta DeSanto Date: Fri, 22 Jul 2022 12:56:51 -0400 Subject: [PATCH 03/15] adding more details to Person.vue & updating sample md files --- content/people/0example/index.md | 1 + content/people/assunta/index.md | 5 ++++- src/templates/Person.vue | 16 ++++++++++++---- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/content/people/0example/index.md b/content/people/0example/index.md index 0863fc5d45..3f33a75376 100644 --- a/content/people/0example/index.md +++ b/content/people/0example/index.md @@ -1,6 +1,7 @@ --- name: Strong Bad subsites: ["eu"] +main_subsite: "eu" email: sbad@homestarrunner.com phone: (808) 867-5309 website: homestarrunner.com diff --git a/content/people/assunta/index.md b/content/people/assunta/index.md index 02f57175b5..2eaebaffb4 100644 --- a/content/people/assunta/index.md +++ b/content/people/assunta/index.md @@ -2,5 +2,8 @@ name: Assunta DeSanto subsites: [us] github: assuntad23 -affiliation: psu +image: adesanto_book_resize.png +affiliations: +- id: psu + name: Penn State University --- diff --git a/src/templates/Person.vue b/src/templates/Person.vue index 8ca4ec450b..c6e8bf8650 100644 --- a/src/templates/Person.vue +++ b/src/templates/Person.vue @@ -1,5 +1,5 @@