-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublications.html
More file actions
143 lines (133 loc) · 5.4 KB
/
Copy pathpublications.html
File metadata and controls
143 lines (133 loc) · 5.4 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
layout: default
title: Publications
permalink: /publications/
---
<section class="page-hero">
<div class="container">
<h1 class="gradient-text">Publications</h1>
<div class="toc">
{% assign theme_meta = site.data.project_themes %}
{% if theme_meta and theme_meta.order and theme_meta.order.size > 0 %}
{% assign toc_keys = theme_meta.order %}
{% assign labels = theme_meta.labels %}
{% else %}
{% assign pubs = site.data.publications %}
{% assign toc_keys = pubs | map: "theme_key" | uniq | compact %}
{% assign labels = {} %}
{% endif %}
<nav class="toc-vertical" aria-label="Project areas">
{% for key in toc_keys %}
{% assign label = nil %}
{% if labels and labels[key] %}{% assign label = labels[key] %}{% endif %}
{% unless label %}
{% assign tokens = key | split: "-" %}
{% capture label %}
{% for w in tokens %}
{% assign up = w | upcase %}
{% if up == "AI" or up == "ML" or up == "HPC" %}
{{ up }}
{% else %}
{{ w | capitalize }}
{% endif %}
{% unless forloop.last %} {% endunless %}
{% endfor %}
{% endcapture %}
{% assign label = label | strip %}
{% endunless %}
<a class="toc-item" href="#{{ key | slugify }}">{{ label }}</a>
{% endfor %}
</nav>
</div>
<p class="subtitle">Grouped by project area. Search and year filters work across all sections.</p>
<div class="pub-filters">
<input type="search" id="q" placeholder="Search title, author, venue, year">
<select id="year">
<option value="">All years</option>
{% assign years = site.data.publications | map: 'year' | uniq | sort | reverse %}
{% for y in years %}<option value="{{ y }}">{{ y }}</option>{% endfor %}
</select>
</div>
</div>
</section>
<section class="section container">
{% assign theme_order = site.data.project_themes.order %}
{% assign labels = site.data.project_themes.labels %}
{% for key in theme_order %}
{% assign section = site.data.publications | where: "theme_key", key | sort: "date" | reverse %}
{% if section.size > 0 %}
{% assign label = nil %}
{% if labels and labels[key] %}{% assign label = labels[key] %}{% endif %}
{% unless label %}
{% assign tokens = key | split: "-" %}
{% capture label %}
{% for w in tokens %}
{% assign up = w | upcase %}
{% if up == "AI" or up == "ML" or up == "HPC" %}
{{ up }}
{% else %}
{{ w | capitalize }}
{% endif %}
{% unless forloop.last %} {% endunless %}
{% endfor %}
{% endcapture %}
{% assign label = label | strip %}
{% endunless %}
<h2 id="{{ key | slugify }}" class="section-title">{{ label }}</h2>
<div class="pub-list">
{% for p in section %}
<article class="pub"
data-title="{{ p.title | downcase }}"
data-authors="{{ p.authors | join: ' ' | downcase }}"
data-venue="{{ p.venue | downcase }}"
data-year="{{ p.year }}">
<h3 class="pub-title">
{% if p.link %}<a href="{{ p.link }}" target="_blank" rel="noopener">{{ p.title }}</a>{% else %}{{ p.title }}{% endif %}
</h3>
{% if p.authors_html %}
<p class="pub-authors">{{ p.authors_html | strip_newlines }}</p>
{% else %}
<p class="pub-authors">{{ p.authors | join: ', ' }}</p>
{% endif %}
<p class="pub-venue">{{ p.venue }}{% if p.venue and p.year %}, {% endif %}{{ p.year }}</p>
{% if p.resources %}
<div class="pub-links">
{% for r in p.resources %}
<a class="chip" href="{{ r.url }}" target="_blank" rel="noopener">{{ r.label }}</a>
{% endfor %}
</div>
{% endif %}
</article>
{% endfor %}
</div>
{% endif %}
{% endfor %}
{% assign other = site.data.publications | where_exp: "x", "x.theme_key == nil" | sort: "date" | reverse %}
{% if other.size > 0 %}
<h2 id="other" class="section-title">Other</h2>
<div class="pub-list">
{% for p in other %}
<article class="pub"
data-title="{{ p.title | downcase }}"
data-authors="{{ p.authors | join: ' ' | downcase }}"
data-venue="{{ p.venue | downcase }}"
data-year="{{ p.year }}">
<h3 class="pub-title">
{% if p.link %}<a href="{{ p.link }}" target="_blank" rel="noopener">{{ p.title }}</a>{% else %}{{ p.title }}{% endif %}
</h3>
{% if p.authors_html %}
<p class="pub-authors">{{ p.authors_html | strip_newlines }}</p>
{% else %}
<p class="pub-authors">{{ p.authors | join: ', ' }}</p>
{% endif %}
<p class="pub-venue">{{ p.venue }}{% if p.venue and p.year %}, {% endif %}{{ p.year }}</p>
{% if p.resources %}
<div class="pub-links">
{% for r in p.resources %}<a class="chip" href="{{ r.url }}" target="_blank" rel="noopener">{{ r.label }}</a>{% endfor %}
</div>
{% endif %}
</article>
{% endfor %}
</div>
{% endif %}
</section>