From b3e57cb5aedd18d473ee9f0b7f7213b9eaf4a00b Mon Sep 17 00:00:00 2001 From: Marc Streit Date: Tue, 5 Dec 2023 08:59:04 +0100 Subject: [PATCH] changed order on pub page --- _layouts/publications.html | 70 +++++++++++++++--------------- _layouts/team-member.html | 89 ++++++++++++++++++-------------------- 2 files changed, 78 insertions(+), 81 deletions(-) diff --git a/_layouts/publications.html b/_layouts/publications.html index e012b5b7..4532f3c3 100644 --- a/_layouts/publications.html +++ b/_layouts/publications.html @@ -56,8 +56,41 @@

Peer-Reviewed Journal and Conference Papers

{% endfor %}
- -

Theses

+ +

Book Chapters

+ + {% for publication in site.edits_comments_books reversed %} + {% if publication.personal %} + {% elsif publication.type == "book_chapter" %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} + +
+ +

Commentaries

+ + {% for publication in site.edits_comments_books reversed %} + {% if publication.personal %} + {% elsif publication.type == "commentaries" %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} + +
+ +

Editorials

+ + {% for publication in site.edits_comments_books reversed %} + {% if publication.personal %} + {% elsif publication.type == "editorial" %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} + +
+ +

Theses

{% assign member_thesis = site.publications | where:"type", "thesis" %} {% for thesis in member_thesis reversed %} @@ -97,39 +130,6 @@

Theses


-

Book Chapters

- - {% for publication in site.edits_comments_books reversed %} - {% if publication.personal %} - {% elsif publication.type == "book_chapter" %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} - -
- -

Commentaries

- - {% for publication in site.edits_comments_books reversed %} - {% if publication.personal %} - {% elsif publication.type == "commentaries" %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} - -
- -

Editorials

- - {% for publication in site.edits_comments_books reversed %} - {% if publication.personal %} - {% elsif publication.type == "editorial" %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} - -
-

Selected Abstracts and Posters

{% for publication in site.data.posters %} diff --git a/_layouts/team-member.html b/_layouts/team-member.html index 38743ff5..0ec4f0bd 100644 --- a/_layouts/team-member.html +++ b/_layouts/team-member.html @@ -220,7 +220,49 @@

Theses


{% endif %} - + {% assign member_edits_comments_books = site.edits_comments_books | where_exp:"item", 'item.authors contains page.key' %} + + + {% assign member_edits = member_edits_comments_books | where:"type", "editorial" %} + {% assign psize = member_edits | size %} + {% if psize > 0 %} +

Editorials

+ {% for publication in member_edits reversed %} + {% if publication.personal %} + {% else %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} +
+ {% endif %} + + + + {% assign member_comments = member_edits_comments_books | where:"type", "commentaries" %} + {% assign psize = member_comments | size %} + {% if psize > 0 %} +

Commentaries

+ {% for publication in member_comments reversed %} + {% if publication.personal %} + {% else %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} +
+ {% endif %} + + {% assign member_book_chapters = member_edits_comments_books | where:"type", "book_chapter" %} + {% assign psize = member_book_chapters | size %} + {% if psize > 0 %} +

Book Chapters

+ {% for publication in member_book_chapters reversed %} + {% if publication.personal %} + {% else %} + {% include publication_list_entry_book.html %} + {% endif %} + {% endfor %} +
+ {% endif %} @@ -342,51 +384,6 @@

Selected Abstracts and Posters

{% endif %} - {% assign member_edits_comments_books = site.edits_comments_books | where_exp:"item", 'item.authors contains page.key' %} - - - {% assign member_edits = member_edits_comments_books | where:"type", "editorial" %} - {% assign psize = member_edits | size %} - {% if psize > 0 %} -

Editorials

- {% for publication in member_edits reversed %} - {% if publication.personal %} - {% else %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} -
- {% endif %} - - - - {% assign member_comments = member_edits_comments_books | where:"type", "commentaries" %} - {% assign psize = member_comments | size %} - {% if psize > 0 %} -

Commentaries

- {% for publication in member_comments reversed %} - {% if publication.personal %} - {% else %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} -
- {% endif %} - - {% assign member_book_chapters = member_edits_comments_books | where:"type", "book_chapter" %} - {% assign psize = member_book_chapters | size %} - {% if psize > 0 %} -

Book Chapters

- {% for publication in member_book_chapters reversed %} - {% if publication.personal %} - {% else %} - {% include publication_list_entry_book.html %} - {% endif %} - {% endfor %} -
- {% endif %} - - {% assign member_projects = site.data.projects | where:"author", page.key %} {% assign psize = member_projects | size %}