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 +4 -4
- data/lib/dimples/pager.rb +2 -3
- data/lib/dimples/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c408ebc105da1277ad32d6cc979cd8be0ac1d01a063dee1bd96e62a4a8f7066
|
4
|
+
data.tar.gz: 48a27e0263f74bc939f043ef961c95113be22280377ecdaf992967461bf4c3e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, "#{
|
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] || '
|
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)
|
data/lib/dimples/version.rb
CHANGED