Skip to content

Instantly share code, notes, and snippets.

@inukshuk inukshuk/README.md
Last active Sep 24, 2019

Embed
What would you like to do?
Jekyll-Scholar Bibliography Template Example

This is a sample Jekyll-Scholar bibliography template. The file bibliography.html should be placed in the _layouts directory. Furthermore, this assumes you have a ./pdf directory: this directory contains all you PDFs or Postscripts (possibly in sub-directories of ./pdf), e.g.: ./pdf/Bartlett-2010-ICML.pdf and ./pdf/talks/Wood-2004-EMBS.pdf both work. You can specify the repository root folder using the repository configuration option.

The bibliography template assumes you have Bootstrap configured on your site.

scholar:
style: apa
repository: pdf
bibliography_template: bibliography
---
---
{{reference}}
<div id="{{key}}-materials">
<ul class="nav nav-pills">
{% if entry.abstract %}
<li><a data-toggle="collapse" href="#{{key}}-abstract">Abstract</a></li>
{% endif %}
<li><a data-toggle="collapse" href="#{{key}}-bibtex">BibTeX</a></li>
{% if link %}
<li><a href="{{link}}">Download</a></li>
{% endif %}
</ul>
{% if entry.abstract %}
<p id="{{key}}-abstract" class="collapse">{{entry.abstract}}</p>
{% endif %}
<pre id="{{key}}-bibtex" class="pre pre-scrollable collapse">{{entry.bibtex}}</pre>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.