Module: Dimples::Configuration
- Defined in:
- lib/dimples/configuration.rb
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
48 49 50 51 52 53 54 |
# File 'lib/dimples/configuration.rb', line 48 def self.default_date_formats { year: '%Y', month: '%Y-%m', day: '%Y-%m-%d' } end |
.default_feed_formats ⇒ Object
56 57 58 |
# File 'lib/dimples/configuration.rb', line 56 def self.default_feed_formats ['atom'] end |
.default_generation ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/dimples/configuration.rb', line 27 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
39 40 41 42 43 44 45 46 |
# File 'lib/dimples/configuration.rb', line 39 def self.default_layouts { post: 'post', category: 'category', archive: 'archive', date_archive: 'archive' } end |
.default_pagination ⇒ Object
60 61 62 63 64 65 |
# File 'lib/dimples/configuration.rb', line 60 def self.default_pagination { page_prefix: 'page', per_page: 10 } end |
.default_paths ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/dimples/configuration.rb', line 18 def self.default_paths { output: 'site', archives: 'archives', posts: 'archives/%Y/%m/%d', categories: 'archives/categories' } end |
.defaults ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dimples/configuration.rb', line 5 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 |