Skip to content

Commit 977a47c

Browse files
authored
Add DOI field button to bibliography (#2729)
1 parent 332a6df commit 977a47c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_layouts/bib.liquid

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@
192192
{% if entry.abstract %}
193193
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
194194
{% endif %}
195+
{% if entry.doi %}
196+
<a href="https://doi.org/{{ entry.doi }}" class="btn btn-sm z-depth-0" role="button">DOI</a>
197+
{% endif %}
195198
{% if entry.arxiv %}
196199
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button">arXiv</a>
197200
{% endif %}

0 commit comments

Comments
 (0)