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

Remove link underscore from asterisks #13

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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