Skip to content

Instantly share code, notes, and snippets.

@inukshuk
Last active December 21, 2020 21:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inukshuk/8539172 to your computer and use it in GitHub Desktop.
Save inukshuk/8539172 to your computer and use it in GitHub Desktop.
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