Skip to content

Commit

Permalink
Merge pull request #13 from krooken/equal_contribution
Browse files Browse the repository at this point in the history
Remove link underscore from asterisks
  • Loading branch information
wljungbergh authored Mar 20, 2024
2 parents c1c1718 + 22aba3d commit 04a9485
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions _layouts/publication.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ <h1 class="page-title">{{ page.title }}</h1>
<li class="publication__author_list_item">

<span class="publication__author_name">
{% if author.url %}
<a href="{{ author.url }}" target="_blank" rel="noopener noreferrer" itemprop="author" itemscope
<span itemprop="name">
{%- if author.url or author.scholar -%}
<a href="{% if author.url %}{{ author.url }}{% elsif author.scholar %}https://scholar.google.com/citations?user={{ author.scholar }}{% endif %}"
target="_blank" rel="noopener noreferrer" itemprop="author" itemscope
itemtype="https://schema.org/Person">
{% elsif author.scholar %}
<a href="https://scholar.google.com/citations?user={{ author.scholar }}" target="_blank" rel="noopener noreferrer" itemprop="author" itemscope
itemtype="https://schema.org/Person">
{% endif %}
{% if page.n_equal_contrib > 1 and forloop.index0 < page.n_equal_contrib %}
<span itemprop="name">{{ author.firstname[3] }}<sup>&ast;</sup></span>
{% else %}
<span itemprop="name">{{ author.firstname[3] }}</span>
{% endif %}

{% if author.url or author.scholar %}
{%- endif -%}
{{ author.firstname[3] }}
{%- if author.url or author.scholar -%}
</a>
{% endif %}
{%- endif -%}
{%- if page.n_equal_contrib > 1 and forloop.index0 < page.n_equal_contrib -%}
<sup>&ast;</sup>
{%- endif -%}
</span>
{% if author.orcid %}
<a href="https://orcid.org/{{ author.orcid }}" target="_blank" rel="noopener noreferrer">
<i class="ai ai-orcid"></i>
Expand Down

0 comments on commit 04a9485

Please sign in to comment.