File: defaults.rb

package info (click to toggle)
ruby-jekyll-paginate-v2 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,988 kB
  • sloc: ruby: 1,085; sh: 7; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,861 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module Jekyll
  module PaginateV2::AutoPages

    # The default configuration for the AutoPages
    DEFAULT = {
      'enabled'     => false,
      'tags'        => {
        'layouts'       => ['autopage_tags.html'],
        'title'         => 'Posts tagged with :tag',
        'permalink'     => '/tag/:tag',
        'enabled'       => true,
        'slugify'       => {
                              'mode' => 'none', # [raw default pretty ascii latin], none gives back the same string
                              'cased'=> false # If cased is true, all uppercase letters in the result string are replaced with their lowercase counterparts.
                            }
      },
      'categories'  => {
        'layouts'       => ['autopage_category.html'],
        'title'         => 'Posts in category :cat',
        'permalink'     => '/category/:cat',
        'enabled'       => true,
        'slugify'       => {
                              'mode' => 'none', # [raw default pretty ascii latin], none gives back the same string
                              'cased'=> false # If cased is true, all uppercase letters in the result string are replaced with their lowercase counterparts.
                            }
      },
      'collections' => {
        'layouts'       => ['autopage_collection.html'],
        'title'         => 'Posts in collection :coll',
        'permalink'     => '/collection/:coll',
        'enabled'       => true,
        'slugify'       => {
                              'mode' => 'none', # [raw default pretty ascii latin], none gives back the same string
                              'cased'=> false # If cased is true, all uppercase letters in the result string are replaced with their lowercase counterparts.
                            }
      } 
    }

  end # module PaginateV2::AutoPages
end # module Jekyll