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

7
8
9
10
11
12
13
      'sort_by'                => 'none',
      'order'                  => 'ascending',
      'group_by'               => 'none',
      'group_order'            => 'ascending',
      'bibliography_group_tag' => 'h2,h3,h4,h5',
      'bibliography_list_tag'  => 'ol',
      'bibliography_item_tag'  => 'li',
14
15
      'bibliography_list_attributes' => {},
      'bibliography_item_attributes' => {},
16

17
18
19
      'source'                 => './_bibliography',
      'bibliography'           => 'references.bib',
      'repository'             => nil,
20

21
      'bibtex_options'         => { :strip => false, :parse_months => true },
Thomas Wood's avatar
Thomas Wood committed
22
      'bibtex_filters'         => [ :superscript, :latex ],
23
      'bibtex_skip_fields'     => [ :abstract, :month_numeric ],
24

25
26
      'replace_strings'        => true,
      'join_strings'           => true,
27

28
29
30
31
      'details_dir'            => 'bibliography',
      'details_layout'         => 'bibtex.html',
      'details_link'           => 'Details',
      'use_raw_bibtex_entry'   => false,
32

33
34
      'bibliography_class'     => 'bibliography',
      'bibliography_template'  => '{{reference}}',
35

36
37
      'reference_tagname'      => 'span',
      'missing_reference'      => '(missing reference)',
Sylvester Keil's avatar
Sylvester Keil committed
38

39
      'details_link_class'     => 'details',
Sylvester Keil's avatar
Sylvester Keil committed
40

41
42
43
44
45
46
47
48
      'query'                  => '@*',

      'type_names' => {
        'article' => 'Journal Articles',
        'book' => 'Books',
        'incollection' => 'Book Chapters',
        'inproceedings' => 'Conference Articles',
        'thesis' => 'Theses',
49
50
        'mastersthesis' => 'Master\'s Theses',
        'phdthesis' => 'PhD Theses',
51
52
53
54
55
56
57
58
59
60
        'manual' => 'Manuals',
        'techreport' => 'Technical Reports',
        'misc' => 'Miscellaneous',
        'unpublished' => 'Unpublished',
      },
      'type_aliases' => {
        'phdthesis' => 'thesis',
        'mastersthesis' => 'thesis',
      },
      'type_order' => [],
Sylvester Keil's avatar
Sylvester Keil committed
61

62
      'month_names' => nil,
Sylvester Keil's avatar
Sylvester Keil committed
63
    }.freeze
64
65
66
67
68

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