-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbib.html
More file actions
105 lines (100 loc) · 3.56 KB
/
bib.html
File metadata and controls
105 lines (100 loc) · 3.56 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
---
---
<article class="card bibliography-entry">
<div class="card-body">
{% if entry.award %}
<div class="award-badge mb-2">
<i class="fa-solid fa-award text-primary"></i>
<span class="award-name">{{ entry.award }}</span>
</div>
{% endif %}
<div class="bibliography-title">
{% if entry.doi %}
<a
href="https://doi.org/{{ entry.doi }}"
target="_blank"
rel="noopener noreferrer"
>
<strong>{{ entry.title }}</strong>
</a>
{% elsif entry.url %}
<a href="{{ entry.url }}" target="_blank" rel="noopener noreferrer">
<strong>{{ entry.title }}</strong>
</a>
{% else %}
<strong>{{ entry.title }}</strong>
{% endif %}
</div>
{% include authors.html entry=entry %}
<div class="bibliography-details">
{% if entry.venue %}
<span class="publication-type">{{ entry.venue }}</span>
{% if entry.year %} • {{ entry.year }}{% endif %}
{% elsif entry.series %}
<span class="publication-type">{{ entry.series }}</span>
{% elsif entry.booktitle %}
<span class="publication-type">{{ entry.booktitle }}</span>
{% if entry.year %} • {{ entry.year }}{% endif %}
{% elsif entry.journal %}
<span class="publication-type">{{ entry.journal }}</span>
{% if entry.year %} • {{ entry.year }}{% endif %}
{% elsif entry.eprint %}
<span class="publication-type">Preprint</span>
{% if entry.year %} • {{ entry.year }}{% endif %}
{% elsif entry.publisher %}
<span class="publication-type">{{ entry.publisher }}</span>
{% if entry.year %} • {{ entry.year }}{% endif %}
{% endif %}
</div>
<div class="bibliography-buttons">
{% if entry.abstract %}
<details class="bibliography-abstract">
<summary class="btn btn-outline-primary btn-sm">Abstract</summary>
<p class="abstract-content">{{ entry.abstract }}</p>
</details>
{% endif %}
{% assign buttons = 'doi|DOI,pdf|PDF,code|Code,resources|Resources,video|Video,slides|Slides,poster|Poster,website|Website,arxiv|arXiv,talk|Talk,post|Post,demo|Demo'
| split: ','
%}
{% for button in buttons %}
{% assign parts = button | split: '|' %}
{% assign field = parts[0] %}
{% assign label = parts[1] %}
{% if entry[field] %}
{% assign url = entry[field] %}
{% if field == 'doi' %}
{% assign url = 'https://doi.org/' | append: entry.doi %}
{% elsif field == 'arxiv' %}
{% assign url = 'https://arxiv.org/abs/' | append: entry.arxiv %}
{% elsif field == 'pdf' %}
{% if entry.pdf contains 'http' %}
{% assign url = entry.pdf %}
{% else %}
{% assign url = entry.pdf
| prepend: '/assets/pdf/'
| relative_url
%}
{% endif %}
{% elsif field == 'video' %}
{% if entry.video contains 'http' %}
{% assign url = entry.video %}
{% else %}
{% assign url = entry.video
| prepend: '/assets/video/'
| relative_url
%}
{% endif %}
{% endif %}
<a
href="{{ url }}"
target="_blank"
rel="noopener noreferrer"
class="btn btn-outline-accent btn-sm"
>
{{ label }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
</article>