-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublications.html
55 lines (55 loc) · 2.84 KB
/
publications.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
title: "Publications"
permalink: /publications
sitemap: true
---
<div class="container">
<h1 class="catery">Publications</h1>
<div class="publications">
{% for publications-year in site.data.publications %}
<div class="publications-content">
<div class="publications-year">{{ publications-year.year }}</div>
<div class="publications-list">
{% for publication in publications-year.papers %}
<div class="publication">
{% if publication.url %}
<a href="{{ publication.url }}" target="_blank" class="publication-title">{{ publication.title }}</a>
{% else %}
<div class="publication-title">{{ publication.title }}</div>
{% endif %}
<div class="publication-authors">
{% assign authorslist = publication.authors | split: ", " %}
{% assign authors = "" %}
{% for author in authorslist %}
{% assign compareAuthor = author | downcase %}
{% assign authorFound = false %}
{% for person in site.people %}
{% assign personName = person.name | split: ' ' | first | downcase %}
{% assign personLastName = person.name | split: ' ' | last | downcase %}
{% if compareAuthor contains personName and compareAuthor contains personLastName %}
{% assign authorFound = true %}
{% assign memberurl = site.url | append: site.baseurl | append: person.url %}
{% if person.position == 'Professor' %}
{% assign memberurl = 'https://seungwonh.github.io/' %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% if authorFound %}
{% assign authors = authors | append: '<a href="' | append: memberurl | append: '">' | append: author | append: '</a>, ' %}
{% else %}
{% assign authors = authors | append: author | append: ', ' %}
{% endif %}
{% endfor %}
{% assign authors = authors | append: "@" | replace: ", @", "." %}
{{ authors }}
</div>
<div class="publication-venue">{{ publication.venue }}</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>