Got references working again, code credits to https://raw.githubusercontent.com/olov/jekyll-references/master/references.rb