defaults.rb 961 Bytes
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

Sylvester Keil's avatar
Sylvester Keil committed
10 11
      'source'                => './_bibliography',
      'bibliography'          => 'references.bib',
12

13 14 15
      'bibtex_options'        => { :strip => false },
      'bibtex_filters'        => [ :latex ],

16 17
      'replace_strings'       => true,

Sylvester Keil's avatar
Sylvester Keil committed
18 19 20
      'details_dir'           => 'bibliography',
      'details_layout'        => 'bibtex.html',
      'details_link'          => 'Details',
21

Sylvester Keil's avatar
Sylvester Keil committed
22 23
      'bibliography_class'    => 'bibliography',
      'bibliography_template' => '%{reference}',
24

Sylvester Keil's avatar
Sylvester Keil committed
25 26 27 28 29
      'reference_tagname'     => 'span',
      'missing_reference'     => '(missing reference)',

      'details_link_class'    => 'details',

Sylvester Keil's avatar
Sylvester Keil committed
30
      'query'                 => '@*'
Sylvester Keil's avatar
Sylvester Keil committed
31 32

    }.freeze
33 34 35 36 37

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