defaults.rb 1.11 KB
Newer Older
1 2
module Jekyll
  class Scholar
Sylvester Keil's avatar
Sylvester Keil committed
3 4 5
    @defaults = {
      'style'                 => 'apa',
      'locale'                => 'en',
6

Sylvester Keil's avatar
Sylvester Keil committed
7 8
      'sort_by'               => 'none',
      'order'                 => 'ascending',
9 10
      'bibliography_list_tag' => 'ol',
      'bibliography_item_tag' => 'li',
11

Sylvester Keil's avatar
Sylvester Keil committed
12 13
      'source'                => './_bibliography',
      'bibliography'          => 'references.bib',
14
      'repository'            => nil,
15

16
      'bibtex_options'        => { :strip => false, :parse_months => true },
17 18
      'bibtex_filters'        => [ :latex ],

19
      'replace_strings'       => true,
20
      'join_strings'          => true,
21

Sylvester Keil's avatar
Sylvester Keil committed
22 23 24
      'details_dir'           => 'bibliography',
      'details_layout'        => 'bibtex.html',
      'details_link'          => 'Details',
25

Sylvester Keil's avatar
Sylvester Keil committed
26
      'bibliography_class'    => 'bibliography',
27
      'bibliography_template' => '{{reference}}',
28

Sylvester Keil's avatar
Sylvester Keil committed
29 30 31 32 33
      'reference_tagname'     => 'span',
      'missing_reference'     => '(missing reference)',

      'details_link_class'    => 'details',

Sylvester Keil's avatar
Sylvester Keil committed
34
      'query'                 => '@*'
Sylvester Keil's avatar
Sylvester Keil committed
35 36

    }.freeze
37 38 39 40 41

    class << self
      attr_reader :defaults
    end
  end
Sylvester Keil's avatar
Sylvester Keil committed
42
end