Skip to content

Commit af87e46

Browse files
committed
Fix formatter
1 parent ad50808 commit af87e46

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

_layouts/bib.liquid

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@
205205
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
206206
{% endif %}
207207
-->
208-
{% if entry.doi %}
209-
<a href="https://doi.org/{{ entry.doi }}" class="btn btn-sm z-depth-0" role="button">DOI</a>
210-
{% endif %}
211208
{% if entry.arxiv %}
212209
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button">arXiv</a>
213210
{% endif %}
214211
{% if page.publication == blank %}
215212
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
216213
{% endif %}
214+
{% if entry.doi %}
215+
<a href="https://doi.org/{{ entry.doi }}" class="btn btn-sm z-depth-0" role="button">DOI</a>
216+
{% endif %}
217217
{% if entry.html and page.publication == blank %}
218218
{% if entry.html contains '://' %}
219219
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">INFO</a>
@@ -363,18 +363,20 @@
363363
</div>
364364
{% endif %}
365365

366-
367-
<!-- Hidden bibtex block -->
368366
{% if page.publication %}
369367
<div class="bibtex">
368+
{% highlight bibtex %}
369+
{{- entry.bibtex | hideCustomBibtex -}}
370+
{% endhighlight %}
371+
</div>
370372
{% else %}
373+
<!-- Hidden bibtex block -->
371374
<div class="bibtex hidden">
375+
{% highlight bibtex %}
376+
{{- entry.bibtex | hideCustomBibtex -}}
377+
{% endhighlight %}
378+
</div>
372379
{% endif %}
373-
{% highlight bibtex %}
374-
{{- entry.bibtex | hideCustomBibtex -}}
375-
{% endhighlight %}
376-
</div>
377-
378380

379381
{% if entry.video and site.enable_video_embedding %}
380382
<!-- Hidden video block -->

0 commit comments

Comments
 (0)