Class: Jekyll::Scholar::Details

Inherits:
Page
  • Object
show all
Includes:
Utilities
Defined in:
lib/jekyll/scholar/generators/details.rb

Instance Attribute Summary

Attributes included from Utilities

#bibtex_file, #config, #context, #query, #site

Instance Method Summary collapse

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

#initialize(site, base, dir, entry) ⇒ Details

Returns a new instance of Details.


7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/jekyll/scholar/generators/details.rb', line 7

def initialize(site, base, dir, entry)
  @site, @base, @dir = site, base, dir

  @config = Scholar.defaults.merge(site.config['scholar'] || {})

  @name = details_file_for(entry)

  process(@name)
  read_yaml(File.join(base, '_layouts'), config['details_layout'])

  liquidify(entry)
end