Class: Jekyll::Zettel::Reference
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Zettel::Reference
- Defined in:
- lib/jekyll/zettel/reference.rb
Overview
Liquid tag that renders the reference the Zettel is based on
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/jekyll/zettel/reference.rb', line 6 def render(context) doc = context.registers[:page] return unless doc.key?('reference') && doc['reference'].key?('citation-key') context.registers[:site].config['citeproc'].render :bibliography, id: doc['reference']['citation-key'] end |