Skip to content

Commit

Permalink
added link of the publication in profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
romsto committed Sep 23, 2024
1 parent 79ec530 commit ea2df03
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _layouts/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ <h2 class="other-category">Contact</h2>
{% for publication in publications-year.papers %}
{% assign downcasedauthors = publication.authors | downcase %}
{% if downcasedauthors contains pubname %}
{% assign ppublication = ppublication | append: publication.title | append: "|" | append: publication.venue | append: ";;" %}
{% if publication.url %}
{% assign ppublication = ppublication | append: publication.title | append: "|" | append: publication.venue | append: "|" | append: publication.url | append: ";;" %}
{% else %}
{% assign ppublication = ppublication | append: publication.title | append: "|" | append: publication.venue | append: ";;" %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
Expand All @@ -76,7 +80,11 @@ <h2 class="other-category">Publications</h2>
<ul>
{% for publication in ppublication %}
{% assign ppublication_detail = publication | split: "|" %}
<li><a class="person-publication" href="{{ site.url }}{{ site.baseurl }}/publications">{{ ppublication_detail[0] }}</a>, <span class="person-pub-venue">{{ ppublication_detail[1] }}</span></li>
{% if ppublication_detail.size > 2 %}
<li><a class="person-publication" href="{{ ppublication_detail[2] }}">{{ ppublication_detail[0] }}</a>, <span class="person-pub-venue">{{ ppublication_detail[1] }}</span></li>
{% else %}
<li><a class="person-publication" href="{{ site.url }}{{ site.baseurl }}/publications">{{ ppublication_detail[0] }}</a>, <span class="person-pub-venue">{{ ppublication_detail[1] }}</span></li>
{% endif %}
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit ea2df03

Please sign in to comment.