bridgetown-paginate 1.0.0.alpha10 → 1.0.0.alpha11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-paginate/hooks.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f9cd8a02bdb075f27e1c00cd93bd14d571f97ca61ebef0de07562ddf7d5a970
|
4
|
+
data.tar.gz: 6c7598c93d0a6c9e89e50eba9609b2d2fb61e3ae720e27f04996f4b709d02e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75d639e1ba0e5233dcee3e94d816b41bf031feebe4cd0ae0a5e4977d64f20ab0e8a38eec9dda562d4f78733bdaffefa2fdc66220ddb93814931f276a57628ac
|
7
|
+
data.tar.gz: 799beb99492f81d0c1dec1a497deaa49c1b1845c2fb96f3cf2cfa948229a795ea34ab163989003388f27f3bb734a76db73a73e0e176008da5e422b2b4583b7ff
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Handles Generated Pages
|
4
|
-
Bridgetown::Hooks.
|
4
|
+
Bridgetown::Hooks.register_one :generated_pages, :post_init, reloadable: false do |page|
|
5
5
|
if page.class != Bridgetown::Paginate::PaginationPage &&
|
6
6
|
page.site.config.dig("pagination", "enabled")
|
7
7
|
data = page.data.with_dot_access
|
@@ -13,7 +13,7 @@ Bridgetown::Hooks.register :generated_pages, :post_init, reloadable: false do |p
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# Handles Resources
|
16
|
-
Bridgetown::Hooks.
|
16
|
+
Bridgetown::Hooks.register_one :resources, :post_read, reloadable: false do |page|
|
17
17
|
if page.site.config.dig("pagination", "enabled") && (
|
18
18
|
(page.data.pagination.present? && page.data.pagination.enabled != false) ||
|
19
19
|
(page.data.paginate.present? && page.data.paginate.enabled != false)
|
@@ -23,6 +23,6 @@ Bridgetown::Hooks.register :resources, :post_read, reloadable: false do |page|
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Ensure sites clear out templates before rebuild
|
26
|
-
Bridgetown::Hooks.
|
26
|
+
Bridgetown::Hooks.register_one :site, :after_reset, reloadable: false do |_site|
|
27
27
|
Bridgetown::Paginate::PaginationGenerator.matching_templates.clear
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.alpha11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0.
|
19
|
+
version: 1.0.0.alpha11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0.
|
26
|
+
version: 1.0.0.alpha11
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|