diff --git a/.gitignore b/.gitignore index badbc02..ca35be0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ _site -.sass-cache diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7e02342 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "files.exclude": { + "_site": true + }, + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.patterns": { + "*": "${capture}.lock" + } +} \ No newline at end of file diff --git a/README.md b/README.md index 8031dbe..4b21683 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ make build make serve ``` -This will rebuild the site, then serves `_site` at `http://localhost:4000`. +This will start Jekyll in watch mode and serve the site at +`http://localhost:4000`. Content changes are rebuilt automatically. Useful overrides: diff --git a/_config.yml b/_config.yml index 8bef2b3..0c257a0 100644 --- a/_config.yml +++ b/_config.yml @@ -18,6 +18,7 @@ url: https://cmrcs.org markdown: kramdown theme: minima +# Files to not copy to _site/ (dotfiles are excluded by default) exclude: - Gemfile - Gemfile.lock diff --git a/_data/people.yml b/_data/people.yml new file mode 100644 index 0000000..74e6ac9 --- /dev/null +++ b/_data/people.yml @@ -0,0 +1,27 @@ +- id: andrew-scott + name: Andrew D. Scott + image: + summary: + role: + focus: + orcid: 0000-0001-7656-3123 + linkedin: scottandrewd + webpage: https://profiles.imperial.ac.uk/andrew.scott +- id: denis-doorly + name: Denis J. Doorly + image: + summary: + role: + focus: + orcid: Orcid identifier0000-0002-5372-4702 + linkedin: + webpage: https://profiles.imperial.ac.uk/d.doorly +- id: jan-rose + name: Jan N. Rose + image: + summary: Completed his PhD in 2021, working on realistic histology-based DT-CMR simulation using Monte Carlo methods. + role: Alumn + focus: Cardiac microstructure, Monte Carlo modelling + orcid: 0000-0002-2273-7439 + linkedin: janniklasrose + github: janniklasrose diff --git a/_data/publications.yml b/_data/publications.yml new file mode 100644 index 0000000..7bc7e97 --- /dev/null +++ b/_data/publications.yml @@ -0,0 +1,11 @@ +- id: novel-insights-dt-cmr-virtual-microstructure + year: 2019 + title: Novel insights into in-vivo diffusion tensor cardiovascular magnetic resonance using computational modeling and a histology-based virtual microstructure + doi: 10.1002/mrm.27561 + authors: + - person: jan-rose + - name: Sonia Nielles-Vallespin + - name: Pedro F. Ferreira + - name: David N. Firmin + - person: andrew-scott + - person: denis-doorly diff --git a/_layouts/people_index.html b/_layouts/people_index.html new file mode 100644 index 0000000..0f87ac7 --- /dev/null +++ b/_layouts/people_index.html @@ -0,0 +1,24 @@ +--- +layout: site +--- + +
+
+

{{ page.title }}

+
{{ content }}
+
+ +
+ {% for person in site.data.people %} +
+ Profile image for {{ person.name }} +
+

{{ person.role }}

+

{{ person.name }}

+

{{ person.summary }}

+ View profile +
+
+ {% endfor %} +
+
diff --git a/_layouts/person.html b/_layouts/person.html new file mode 100644 index 0000000..24eb9a8 --- /dev/null +++ b/_layouts/person.html @@ -0,0 +1,64 @@ +--- +layout: site +--- +{% assign person = site.data.people | where: "id", page.person_id | first %} + +
+
+

{{ person.name }}

+
+
+ +
+ {{ content }} +

Publications

+ {% assign authored_publications = "" | split: "" %} + {% for publication in site.data.publications %} + {% for author in publication.authors %} + {% if author.person == person.id %} + {% assign authored_publications = authored_publications | push: publication %} + {% endif %} + {% endfor %} + {% endfor %} + {% if authored_publications.size > 0 %} +
    + {% for publication in authored_publications %} +
  • + {{ publication.title }} + {{ publication.year }} +
  • + {% endfor %} +
+ {% else %} +

No publications listed yet.

+ {% endif %} +
+
+
diff --git a/_layouts/publication.html b/_layouts/publication.html new file mode 100644 index 0000000..d81e80e --- /dev/null +++ b/_layouts/publication.html @@ -0,0 +1,36 @@ +--- +layout: site +--- +{% assign publication = site.data.publications | where: "id", page.publication_id | first %} + +
+
+

{{ publication.title }}

+
+
+ +
+ {{ content }} +
+
+
diff --git a/_layouts/publications_index.html b/_layouts/publications_index.html new file mode 100644 index 0000000..b4434b3 --- /dev/null +++ b/_layouts/publications_index.html @@ -0,0 +1,32 @@ +--- +layout: site +--- + +
+
+

{{ page.title }}

+
{{ content }}
+
+ +
+ {% for publication in site.data.publications %} +
+
+

{{ publication.title }}

+

+ {% for author in publication.authors %} + {% if author.person %} + {% assign person = site.data.people | where: "id", author.person | first %} + {{ person.name }}{% unless forloop.last %}, {% endunless %} + {% else %} + {{ author.name }}{% unless forloop.last %}, {% endunless %} + {% endif %} + {% endfor %} +

+ Read publication page +
+
{{ publication.year }}
+
+ {% endfor %} +
+
diff --git a/_layouts/site.html b/_layouts/site.html index 330957a..b42e2e3 100644 --- a/_layouts/site.html +++ b/_layouts/site.html @@ -6,6 +6,7 @@ {{ page.title }} | {{ site.title }} +