Skip to content

Commit

Permalink
added publications on person page
Browse files Browse the repository at this point in the history
  • Loading branch information
romsto committed Sep 20, 2024
1 parent 49aa2b0 commit 42bda66
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ gem "github-pages", "~> 231"
group :jekyll_plugins do
gem "jekyll-sitemap"
gem "jekyll-seo-tag"
end
end
gem "webrick", "~> 1.8"
23 changes: 23 additions & 0 deletions _layouts/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,28 @@ <h2 class="other-category">Contact</h2>
<div class="other-info"></div>
{{ content }}
</div>

{% assign pubname = last_name | append: " " | append: first_name %}
{% assign ppublication = "" %}
{% for publications-year in site.data.publications %}
{% for publication in publications-year.papers %}
{% if publication.authors contains pubname %}
{% assign ppublication = ppublication | append: publication.title | append: "|" | append: publication.venue | append: ";;" %}
{% endif %}
{% endfor %}
{% endfor %}

{% assign ppublication = ppublication | split: ";;" %}
{% if ppublication.size > 1 %}
<div class="other-info">
<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>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</div>
16 changes: 16 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,22 @@ a.alumni:hover {
text-decoration: underline;
}

.person-publication {
color: var(--text-color);
text-decoration: none;
width: 100%;
margin-bottom: 6px;
}

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

.person-pub-venue {
color: var(--text-color);
font-weight: 600;
}

/* Presentation */

.person-presentation {
Expand Down
2 changes: 1 addition & 1 deletion people.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="category">LDILab's Family</h1>
<div class="person-name">
{% assign name_parts = member.name | split: ' ' %}
{{ name_parts | first }}, {{ name_parts | last }} ({{ member.korean_name }})
</div>
</div>
<a class="person-mail" href="mailto:{{ member.mail }}">{{ member.mail }}</a>
<ul class="person-interests">
{% for interest in member.interests %}
Expand Down

0 comments on commit 42bda66

Please sign in to comment.