-
Notifications
You must be signed in to change notification settings - Fork 0
/
publications.html
32 lines (28 loc) · 1.1 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
---
layout: default
title : Publications
navbar_title: Publications
body_attr: >-
data-spy="scroll" data-target="#navbar-year" data-offset="100"
---
{% assign pubs_by_year = site.publications | sort: "date" | reverse | group_by_exp: "item", "item.date | date: '%Y'" %}
<div class="row">
<div class="col-12 col-lg-10">
{% for year in pubs_by_year %}
{% assign num_papers = year.items | size %}
<h2 class="pt-4" id="year-{{ year.name }}">{{ year.name }}</h2>
<div class="my-0 p-0 bg-white shadow-sm rounded-sm">
{% for item in year.items %}
{% include widgets/publication_item.html item=item hide_bottom_border=forloop.last first=forloop.first last=forloop.last %}
{% endfor %}
</div>
{% endfor %}
</div>
<div class="col-2 d-none d-lg-block">
<div id="navbar-year" class="nav nav-pills flex-column sticky-top" style="top: 80px">
{% for year in pubs_by_year %}
<a class="nav-link d-block" href="#year-{{ year.name }}">{{ year.name }}</a>
{% endfor %}
</div>
</div>
</div>