Skip to content

Commit

Permalink
Member pages show also journals instead of only papers
Browse files Browse the repository at this point in the history
- Now taking into account that we use Jekyll 3.9.0 (used by Github Pages)

See the following links to get more info on the update:
- https://stackoverflow.com/questions/42722902/and-or-on-a-where-exp-expression-on-jekyll
- github/pages-gem#651
  • Loading branch information
karapostK committed Nov 25, 2022
1 parent 6e43a8e commit 2a6654a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion _layouts/team-member.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,18 @@ <h2 id="preprint">Preprint</h2>


<!-- Papers -->
{% assign member_papers = member_publications | where_exp:"item", "item.type == 'paper' or item.type == 'journal'" %}
<!-- As Jekyll >= 4.0 is not supported https://github.com/github/pages-gem/issues/651 by github pages-->
<!-- it's not possible to have elegant solutions to include "or" in filters. -->
<!-- We use the solution from https://stackoverflow.com/questions/42722902/and-or-on-a-where-exp-expression-on-jekyll -->
<!-- -abm -->

{% assign member_papers = "" | split: "," %}
{% for member_publication in member_publications %}
{% if member_publication.type == 'journal' or member_publication.type == 'paper' %}
{% assign member_papers = member_papers | push:member_publication %}
{% endif %}
{% endfor %}

{% assign psize = member_papers | size %}
{% if psize > 0 %}
<h2 id="journal-papers">Peer-Reviewed Journal and Conference Papers</h2>
Expand Down

0 comments on commit 2a6654a

Please sign in to comment.