forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bib.html
136 lines (131 loc) · 5.32 KB
/
bib.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
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
---
---
<div class="row">
<div class="col-sm-2 abbr">
{% if entry.abbr %}
{% if site.data.venues[entry.abbr] %}
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a></abbr>
{% else %}
<abbr class="badge">{{entry.abbr}}</abbr>
{% endif %}
{% endif %}
{% if entry.award %}
<span class="award badge">{{entry.award}}</span>
{% endif %}
<!-- {% if entry.image %} -->
<!-- <div>
<img class="img-fluid z" src="{{ entry.image | prepend: '/assets/img/' | relative_url }}" />
</div>
{% endif %} -->
</div>
<div id="{{entry.key}}" class="col-sm-8 anchor">
{% if entry.type == "thesis" %}
<div class="title">{{entry.title}}</div>
<!-- <div class="author"> <em>Aleksandar Bojchevski</em> </div> -->
<em> {{entry.school}}, {{entry.year}} </em>
<!-- {{reference}} -->
{% else %}
<div class="title">{{entry.title}}</div>
<div class="author">
{% for author in entry.author_array %}
{% if forloop.length == 1 %}
{% if author.last == site.scholar.last_name or author.last == site.scholar.last_name_star%}
<em>{{author.first}} {{author.last}}</em>
{% else %}
{{author.first}} {{author.last}}
{% endif %}
{% else %}
{% unless forloop.last %}
{% if author.last == site.scholar.last_name or author.last == site.scholar.last_name_star %}
<em>{{author.first}} {{author.last}}</em>,
{% else %}
{% if site.data.coauthors[author.last] %}
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.first}} {{author.last}}</a>,
{% else %}
{{author.first}} {{author.last}},
{% endif %}
{% endif %}
{% else %}
{% if author.last == site.scholar.last_name or author.last == site.scholar.last_name_star%}
and <em>{{author.first}} {{author.last}}</em>
{% else %}
{% if site.data.coauthors[author.last] %}
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.first}} {{author.last}}</a>
{% else %}
and {{author.first}} {{author.last}}
{% endif %}
{% endif %}
{% endunless %}
{% endif %}
{% endfor %}
</div>
<div class="periodical">
{% if entry.type == "article" %}
<em>{{entry.journal}}</em>
{% elsif entry.type == "inproceedings" %}
<em>In {{entry.booktitle}}</em>
{% endif %}
{% if entry.year %}
{{entry.year}}
{% endif %}
</div>
{% endif %}
<div class="links">
{% if entry.abstract %}
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
{% endif %}
{% if entry.arxiv %}
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
{% endif %}
{% if entry.html %}
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
{% endif %}
{% if entry.pdf %}
{% if entry.pdf contains '://' %}
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
{% else %}
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
{% endif %}
{% endif %}
{% if entry.supp %}
{% if entry.supp contains '://' %}
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
{% else %}
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
{% endif %}
{% endif %}
{% if entry.blog %}
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Blog</a>
{% endif %}
{% if entry.code %}
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Code</a>
{% endif %}
{% if entry.poster %}
{% if entry.poster contains '://' %}
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
{% else %}
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
{% endif %}
{% endif %}
{% if entry.slides %}
{% if entry.slides contains '://' %}
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
{% else %}
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
{% endif %}
{% endif %}
{% if entry.website %}
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Website</a>
{% endif %}
{% if entry.talk %}
<a href="{{ entry.talk }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Talk</a>
{% endif %}
</div>
<!-- Hidden abstract block -->
{% if entry.abstract %}
<div class="abstract hidden">
<p>{{ entry.abstract }}</p>
</div>
{% endif %}
</div>
</div>