Module: Dimples::Configuration
- Defined in:
- lib/dimples/configuration.rb
Overview
Default configuration options for a site.
Class Method Summary collapse
- .default_date_formats ⇒ Object
- .default_feed_formats ⇒ Object
- .default_generation ⇒ Object
- .default_layouts ⇒ Object
- .default_pagination ⇒ Object
- .default_paths ⇒ Object
- .defaults ⇒ Object
Class Method Details
.default_date_formats ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/dimples/configuration.rb', line 49 def self.default_date_formats { year: '%Y', month: '%Y-%m', day: '%Y-%m-%d' } end |
.default_feed_formats ⇒ Object
57 58 59 |
# File 'lib/dimples/configuration.rb', line 57 def self.default_feed_formats ['atom'] end |
.default_generation ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/dimples/configuration.rb', line 28 def self.default_generation { archives: true, year_archives: true, month_archives: true, day_archives: true, categories: true, main_feed: true, category_feeds: true } end |
.default_layouts ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/dimples/configuration.rb', line 40 def self.default_layouts { post: 'post', category: 'category', archive: 'archive', date_archive: 'archive' } end |
.default_pagination ⇒ Object
61 62 63 64 65 66 |
# File 'lib/dimples/configuration.rb', line 61 def self.default_pagination { page_prefix: 'page', per_page: 10 } end |
.default_paths ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/dimples/configuration.rb', line 19 def self.default_paths { output: './public', archives: 'archives', posts: 'archives/%Y/%m/%d', categories: 'archives/categories' } end |
.defaults ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/dimples/configuration.rb', line 6 def self.defaults { paths: default_paths, generation: default_generation, layouts: default_layouts, pagination: default_pagination, date_formats: default_date_formats, feed_formats: default_feed_formats, category_names: {}, rendering: {} } end |