Class: Jekyll::Scholar::CiteTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Scholar::CiteTag
- Includes:
- Utilities
- Defined in:
- lib/jekyll/scholar/tags/cite.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
Attributes included from Utilities
#bibtex_file, #config, #context, #query, #site
Instance Method Summary collapse
-
#initialize(tag_name, arguments, tokens) ⇒ CiteTag
constructor
A new instance of CiteTag.
- #render(context) ⇒ Object
Methods included from Utilities
#base_url, #bibliography, #bibtex_options, #bibtex_path, #cite, #cite_details, #cited_references, #content_tag, #details_file_for, #details_link_for, #details_path, #entries, #extend_path, #generate_details?, #link_to, #set_context_to
Constructor Details
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/jekyll/scholar/tags/cite.rb', line 7 def key @key end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
7 8 9 |
# File 'lib/jekyll/scholar/tags/cite.rb', line 7 def pages @pages end |
Instance Method Details
#render(context) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/jekyll/scholar/tags/cite.rb', line 16 def render(context) set_context_to context context['cited'] ||= [] context['cited'] << key cite key end |