Skip to content

Commit

Permalink
added clickable author names in publications page as well as personna…
Browse files Browse the repository at this point in the history
…l pages
  • Loading branch information
romsto committed Dec 5, 2024
1 parent 3915963 commit 20f12de
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _data/publications.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- year: 2025
papers:
- title: 'PERC: Plan-As-Query Example Retrieval for Underrepresented Code Generation'
authors: 'Jaeseok Yoo, Hojae Han, Youngwon Lee, Jaejin Kim, Seungwon Hwang'
authors: 'Jaeseok Yoo, Hojae Han, Youngwon Lee, Jaejin Kim, Seung-won Hwang'
venue: COLING 2025
- year: 2024
papers:
Expand Down
30 changes: 28 additions & 2 deletions _layouts/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2 class="other-category">Contact</h2>
{% endif %}
</div>

<div class="other-info"></div>
<div class="other-info">
{{ content }}
</div>

Expand Down Expand Up @@ -82,7 +82,33 @@ <h2 class="other-category">Contact</h2>
{% assign authors = authors | append: author | append: ", " %}
{% endif %}
{% endfor %}
{% assign authors = authors | append: "@" | replace: ", @", "." %}

{% assign authorslist = authors | split: ", " %}
{% assign newAuthors = "" %}
{% for author in authorslist %}
{% assign compareAuthor = author | downcase %}
{% assign authorFound = false %}
{% for ppperson in site.people %}
{% assign personName = ppperson.name | split: ' ' | first | downcase %}
{% assign personLastName = ppperson.name | split: ' ' | last | downcase %}
{% if compareAuthor contains personName and compareAuthor contains personLastName %}
{% assign authorFound = true %}
{% assign memberurl = site.url | append: site.baseurl | append: ppperson.url %}
{% if ppperson.position == 'Professor' %}
{% assign memberurl = 'https://seungwonh.github.io/' %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% if authorFound %}
{% assign newAuthors = newAuthors | append: '<a class="person-publication-author-link" href="' | append: memberurl | append: '">' | append: author | append: '</a>, ' %}
{% else %}
{% assign newAuthors = newAuthors | append: author | append: ', ' %}
{% endif %}
{% endfor %}


{% assign authors = newAuthors | append: "@" | replace: ", @", "." %}
{% assign downcasedauthors = publication.authors | downcase %}
{% if downcasedauthors contains pubname %}
{% if publication.url %}
Expand Down
18 changes: 18 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,15 @@ footer {
margin-bottom: 5px;
}

.publication-authors a {
color: var(--text-color);
text-decoration: none;
}

.publication-authors a:hover {
text-decoration: underline;
}

.publication-venue {
font-size: 15px;
font-style: italic;
Expand Down Expand Up @@ -506,6 +515,15 @@ footer {
list-style-type: paper;
}

.person-publication-author-link {
color: var(--text-color);
text-decoration: none;
}

.person-publication-author-link:hover {
text-decoration: underline;
}

.alumni {
font-size: 16px;
font-weight: 600;
Expand Down
28 changes: 27 additions & 1 deletion publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,33 @@ <h1 class="catery">Publications</h1>
{% else %}
<div class="publication-title">{{ publication.title }}</div>
{% endif %}
<div class="publication-authors">{{ publication.authors }}</div>
<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 %}
Expand Down

0 comments on commit 20f12de

Please sign in to comment.