defaults.rb 1.98 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 16 17
      'source'                 => './_bibliography',
      'bibliography'           => 'references.bib',
      'repository'             => nil,
18

19 20 21
      'bibtex_options'         => { :strip => false, :parse_months => true },
      'bibtex_filters'         => [ :latex ],
      'bibtex_skip_fields'     => [ :abstract, :month_numeric ],
22

23 24
      'replace_strings'        => true,
      'join_strings'           => true,
25

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

31 32
      'bibliography_class'     => 'bibliography',
      'bibliography_template'  => '{{reference}}',
33

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

37
      'details_link_class'     => 'details',
Sylvester Keil's avatar
Sylvester Keil committed
38

39 40 41 42 43 44 45 46
      'query'                  => '@*',

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

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

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