Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Juhye Lee's papers show up on Jover Lee's team page #17

Open
tsibley opened this issue Jul 11, 2019 · 1 comment
Open

Juhye Lee's papers show up on Jover Lee's team page #17

tsibley opened this issue Jul 11, 2019 · 1 comment

Comments

@tsibley
Copy link
Contributor

tsibley commented Jul 11, 2019

See the bottom of https://bedford.io/team/jover-lee/.

This looks like the code that's responsible for doing the lastname + first initial matching that's causing the problem:

{% assign lastname = member.title | split: ' ' | last %}
{% assign firstinitial = member.title | split: ' ' | first | slice: 0 %}
{% assign searchstring = lastname | append: ' ' | append: firstinitial %}
{% for paper in site.categories.papers %}
{% if paper.authors contains searchstring %}
{% assign papersq = true %}
{% endif %}
{% endfor %}
{% if papersq == true %}
<div class="bigspacer"></div>
<div class="head">Papers</div>
<div class="spacer"></div>
{% for paper in site.categories.papers %}
{% if paper.authors contains searchstring %}
<p><a href="{{ paper.url }}" class="off">{{ paper.title }}</a>
{% endif %}
{% endfor %}
{% endif %}

@trvrb
Copy link
Member

trvrb commented Feb 6, 2020

Thanks for catching this Tom. Because I only have initials in a paper's author string, I think we'll need to explicitly record an array of first + last name for members of the lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants