-
Notifications
You must be signed in to change notification settings - Fork 1
/
publications_template.html
56 lines (55 loc) · 2.4 KB
/
publications_template.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
56
<div class="ui list">
{% for entry in entries -%}
<div class="item">
<div class="header" id="{{entry.key}}">
{{ entry|title }}
<a href="#{{entry.key}}"><i class="linkify icon"></i></a>
</div>
<div class="description">
{{ entry.persons['author']|author_list }}. {{ entry|venue_type}} {{ entry|venue }}, {{ entry.fields['month'] }} {{ entry.fields['year'] }}.
</div>
{% for type, url in (entry|extra_urls).items() -%}
{% if type == 'pdf' -%}
<a class="ui basic icon label" data-tooltip="Paper" href="{{url | escape}}" target="_blank">
<i class="file outline pdf icon"></i>
</a>
{% elif type == 'arxiv' -%}
<a class="ui basic icon label" data-tooltip="arXiv" href="{{url | escape}}" target="_blank">
<i class="ai ai-arxiv"></i>
</a>
{% elif type == 'book' -%}
<a class="ui basic icon label" data-tooltip="Buy book" href="{{url | escape}}" target="_blank">
<i class="book icon"></i>
</a>
{% elif type == 'abstract' -%}
<a class="ui basic icon label" data-tooltip="Abstract" href="{{url | escape}}" target="_blank">
<i class="file outline icon"></i>
</a>
{% elif type == 'poster' -%}
<a class="ui basic icon label" data-tooltip="Poster" href="{{url | escape}}" target="_blank">
<i class="chart line icon"></i>
</a>
{% elif type == 'slides' -%}
<a class="ui basic icon label" data-tooltip="Slides" href="{{url | escape}}" target="_blank">
<i class="file powerpoint outline icon"></i>
</a>
{% elif type == 'youtube' -%}
<a class="ui basic icon label" data-tooltip="YouTube" href="{{url | escape}}" target="_blank">
<i class="youtube icon"></i>
</a>
{% else -%}
<a class="ui primary label" href="{{url | escape}}" target="_blank">
<i class="newspaper icon"></i>
{{type.title()}}
</a>
{% endif -%}
{% endfor -%}
{% if entry.fields.award -%}
<div class="ui primary label">
<i class="award icon"></i>
{{entry.fields.award}}
</div>
{% endif -%}
</div><!-- /item -->
{% endfor -%}
</div><!-- ui list -->