Skip to content

Commit

Permalink
changed order on pub page
Browse files Browse the repository at this point in the history
  • Loading branch information
mstreit committed Dec 5, 2023
1 parent 2967938 commit b3e57cb
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 81 deletions.
70 changes: 35 additions & 35 deletions _layouts/publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,41 @@ <h1 id="journal-papers">Peer-Reviewed Journal and Conference Papers</h1>
{% endfor %}

<br>

<h1 id="theses">Theses</h1>

<h1 id="book-chapters">Book Chapters</h1>

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

<br>

<h1 id="commentaries">Commentaries</h1>

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

<br>

<h1 id="editorials">Editorials</h1>

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

<br>

<h1 id="theses">Theses</h1>

{% assign member_thesis = site.publications | where:"type", "thesis" %}
{% for thesis in member_thesis reversed %}
Expand Down Expand Up @@ -97,39 +130,6 @@ <h1 id="theses">Theses</h1>

<br>

<h1 id="book-chapters">Book Chapters</h1>

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

<br>

<h1 id="commentaries">Commentaries</h1>

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

<br>

<h1 id="editorials">Editorials</h1>

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

<br>

<h1 id="posters">Selected Abstracts and Posters</h1>

{% for publication in site.data.posters %}
Expand Down
89 changes: 43 additions & 46 deletions _layouts/team-member.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,49 @@ <h2 id="theses">Theses</h2>
<br>
{% endif %}


{% assign member_edits_comments_books = site.edits_comments_books | where_exp:"item", 'item.authors contains page.key' %}

<!-- Editorials -->
{% assign member_edits = member_edits_comments_books | where:"type", "editorial" %}
{% assign psize = member_edits | size %}
{% if psize > 0 %}
<h2 id="editorials">Editorials</h2>
{% for publication in member_edits reversed %}
{% if publication.personal %}
{% else %}
{% include publication_list_entry_book.html %}
{% endif %}
{% endfor %}
<br>
{% endif %}


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

{% assign member_book_chapters = member_edits_comments_books | where:"type", "book_chapter" %}
{% assign psize = member_book_chapters | size %}
{% if psize > 0 %}
<h2 id="book-chapters">Book Chapters</h2>
{% for publication in member_book_chapters reversed %}
{% if publication.personal %}
{% else %}
{% include publication_list_entry_book.html %}
{% endif %}
{% endfor %}
<br>
{% endif %}


<!-- Posters -->
Expand Down Expand Up @@ -342,51 +384,6 @@ <h2 id="posters">Selected Abstracts and Posters</h2>
{% endif %}


{% assign member_edits_comments_books = site.edits_comments_books | where_exp:"item", 'item.authors contains page.key' %}

<!-- Editorials -->
{% assign member_edits = member_edits_comments_books | where:"type", "editorial" %}
{% assign psize = member_edits | size %}
{% if psize > 0 %}
<h2 id="editorials">Editorials</h2>
{% for publication in member_edits reversed %}
{% if publication.personal %}
{% else %}
{% include publication_list_entry_book.html %}
{% endif %}
{% endfor %}
<br>
{% endif %}


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

{% assign member_book_chapters = member_edits_comments_books | where:"type", "book_chapter" %}
{% assign psize = member_book_chapters | size %}
{% if psize > 0 %}
<h2 id="book-chapters">Book Chapters</h2>
{% for publication in member_book_chapters reversed %}
{% if publication.personal %}
{% else %}
{% include publication_list_entry_book.html %}
{% endif %}
{% endfor %}
<br>
{% endif %}


<!-- Projects -->
{% assign member_projects = site.data.projects | where:"author", page.key %}
{% assign psize = member_projects | size %}
Expand Down

0 comments on commit b3e57cb

Please sign in to comment.