defaults.rb 1.21 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
      'bibtex_filters'        => [ :latex ],
18
      'bibtex_skip_fields'    => [ :abstract, :month_numeric ],
19

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

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

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

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

      'details_link_class'    => 'details',

Sylvester Keil's avatar
Sylvester Keil committed
36
      'query'                 => '@*'
Sylvester Keil's avatar
Sylvester Keil committed
37 38

    }.freeze
39 40 41 42 43

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