Citations and bibliography with middleman?

Hi all!

is there a citation extension around for middleman, similar to https://github.com/archome/jekyll-citation or https://github.com/inukshuk/jekyll-scholar?

That would be superb!

Or is it possible to let Pandoc build citations and bibliographies after building the html pages? I use Redcarpet.

Thank you!

I ended up developing my own that uses citeproc-ruby and bibtex-ruby on my own site for a while now. Since it would be useful to you as well I decided to separate it out as a separate plugin for middleman that’s here: https://github.com/gabysbrain/middleman-citation. Let me know what you think and if you run into any problems!

Super! That is very kind. Thanks a lot for your effort.

The helper find_pubs is working, but not the helper cite_full yet.

I will play a bit with citeproc to figure out, what the problem is.

Very strange. The process command seems to cause my problems.

  @@bibtex[key].title

works just fine, whereas

CiteProc.process(@@bibtex[key].to_citeproc, :style => @@cite_style)

does not put anything at all.