Added BibTeX hidden block (#293)

* Added BibTeX hidden block

* Minor adjustments

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
This commit is contained in:
Afonso Raposo 2021-05-30 21:28:31 +01:00 committed by GitHub
parent 3051f8a628
commit f3efec5d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@
@string{aps = {American Physical Society,}}
@book{einstein1956investigations,
bibtex_show={true},
title={Investigations on the Theory of the Brownian Movement},
author={Einstein, Albert},
year={1956},
@ -12,6 +13,7 @@
@article{einstein1950meaning,
abbr={AJP},
bibtex_show={true},
title={The meaning of relativity},
author={Einstein, Albert and Taub, AH},
journal={American Journal of Physics,},

View File

@ -86,6 +86,9 @@
{% 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.bibtex_show %}
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
{% endif %}
{% if entry.html %}
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
{% endif %}
@ -134,5 +137,12 @@
<p>{{ entry.abstract }}</p>
</div>
{% endif %}
<!-- Hidden bibtex block -->
{% if entry.bibtex_show %}
<div class="bibtex hidden">
{% highlight bibtex %}{{ entry.bibtex }}{% endhighlight %}
</div>
{% endif %}
</div>
</div>