Skip to content

Commit a318053

Browse files
authored
Create bibliography.html
1 parent b059b45 commit a318053

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

_includes/bibliography.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{% bibliography --group_by year --sort_by year --order descending %}
2+
{% for group in bibliography %}
3+
<h3 style="margin-top: 1.5em; font-weight: bold;">
4+
{{ group.name }}
5+
</h3>
6+
<ul style="list-style-type: none; padding-left: 0;">
7+
{% for entry in group.items %}
8+
<li style="margin-bottom: 10px;">
9+
[{{ forloop.index }}]
10+
<!-- Authors -->
11+
{{ entry.author }}.
12+
13+
<!-- Year -->
14+
({{ entry.year }}).
15+
16+
<!-- Title -->
17+
<em>{{ entry.title }}</em>.
18+
19+
<!-- Venue -->
20+
{% if entry.journal %}
21+
{{ entry.journal }}
22+
{% elsif entry.booktitle %}
23+
{{ entry.booktitle }}
24+
{% elsif entry.publisher %}
25+
{{ entry.publisher }}
26+
{% endif %}
27+
28+
<!-- Links -->
29+
{% if entry.url %}
30+
<a href="{{ entry.url }}" target="_blank">[PDF]</a>
31+
{% endif %}
32+
{% if entry.doi %}
33+
<a href="https://doi.org/{{ entry.doi }}" target="_blank">[DOI]</a>
34+
{% endif %}
35+
{% if entry.eprint %}
36+
<a href="https://arxiv.org/abs/{{ entry.eprint }}" target="_blank">[arXiv]</a>
37+
{% endif %}
38+
</li>
39+
{% endfor %}
40+
</ul>
41+
{% endfor %}
42+
{% endbibliography %}

0 commit comments

Comments
 (0)