dimples 6.4.0 → 6.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e82064ea2d27e72739c67fb129d334ea64e90bc61595089695ef33b11c23fa9
4
- data.tar.gz: 5eb05fdf9ca4a57b5a5fef91c00727c1fe31b886a7686b989433bc4f43a4f322
3
+ metadata.gz: 6c408ebc105da1277ad32d6cc979cd8be0ac1d01a063dee1bd96e62a4a8f7066
4
+ data.tar.gz: 48a27e0263f74bc939f043ef961c95113be22280377ecdaf992967461bf4c3e9
5
5
  SHA512:
6
- metadata.gz: c795a087440b689e5a6b39edd3a4ebd45aa393aeab5d7b0a996012f3945c77e463198b5bcda839d5da95e4224632159d68ccf3212ab703407cb6ef32fdc16c0f
7
- data.tar.gz: 3ad596d15dcc4e661aed2391deff3ce29c5613b8a9ee83162b973825ce1592bc755681c3187a917744ac11484ba95794e9f42b86affc64ad34524e1793dbcce9
6
+ metadata.gz: 4294ccad6f74b54cd8546d12f23ce976bffccfd6852a3ef1711103cc9459649dd247b360ba14eb77ebe42bad145fe355e88eb6be62d792bad8f2768351c48918
7
+ data.tar.gz: 787ef8197927275b4667aeb454a660ea3e7a34a8c1a17ba172de8504828bd3e020baf3f5ffdcb708a4d521ab786279fa03481221f17c98d45c9e7e96d681fff8
data/lib/dimples/pager.rb CHANGED
@@ -24,11 +24,10 @@ module Dimples
24
24
  page = Page.new(site)
25
25
  page.layout = layout
26
26
 
27
- page_prefix = site.config.pagination.page_prefix
28
27
  page_path = if index == 1
29
28
  path
30
29
  else
31
- File.join(path, "#{page_prefix}#{index}")
30
+ File.join(path, "page_#{index}")
32
31
  end
33
32
 
34
33
  page.write(
@@ -42,7 +41,7 @@ module Dimples
42
41
  @url = url
43
42
  @posts = posts
44
43
  @per_page = options[:per_page] || PER_PAGE_DEFAULT
45
- @page_prefix = options[:page_prefix] || 'page'
44
+ @page_prefix = options[:page_prefix] || 'page_'
46
45
  @page_count = (posts.length.to_f / @per_page.to_i).ceil
47
46
 
48
47
  step_to(1)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '6.4.0'
4
+ VERSION = '6.5.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan