Skip to content

Instantly share code, notes, and snippets.

@inukshuk inukshuk/
Last active Sep 24, 2019

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.

style: apa
repository: pdf
bibliography_template: bibliography
<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 %}
{% 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>
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.