cloudcannon-jekyll 3.2.1 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/HISTORY.md +9 -1
- data/README.md +3 -2
- data/lib/cloudcannon-jekyll/generators/collections.rb +4 -0
- data/lib/cloudcannon-jekyll/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d93973921d4a4f673b82f8b23f7e67b563e550bf62708631310ad0cc92a21e9c
|
|
4
|
+
data.tar.gz: c1fbf58e6378b8b66703a9f25d0db3e9399b3a5324605ef891aaf009799abe02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf473d7f0222da25f2bfe7c3b04065b474fec51d9c2820e27966b5d50d49369e8f41c854ad19e21ae330a585869e08e724c9ee7daec1f8c0fb1db00612758a19
|
|
7
|
+
data.tar.gz: ea1826a618609914b83cc038ee058e453e8ca60400bd36d454bee5a891932a6970a36ed1d26fead1b57ed358dbecc4e6544038175642d4745bd3656e57dc49a9
|
data/HISTORY.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
# 3.2.
|
|
1
|
+
# 3.2.3
|
|
2
|
+
|
|
3
|
+
* Fixed malformed paths on index pages caused by jekyll-paginate-v2
|
|
4
|
+
|
|
5
|
+
# 3.2.2
|
|
2
6
|
|
|
3
7
|
* Pass through any keys in the global configuration file
|
|
4
8
|
|
|
9
|
+
# 3.2.1
|
|
10
|
+
|
|
11
|
+
* No changes
|
|
12
|
+
|
|
5
13
|
# 3.2.0
|
|
6
14
|
|
|
7
15
|
* Add dam_uploads and dam_static to paths
|
data/README.md
CHANGED
|
@@ -156,8 +156,9 @@ reads and processes the following from Jekyll if unset:
|
|
|
156
156
|
|
|
157
157
|
1. Increase the version in `lib/cloudcannon-jekyll/version.rb`
|
|
158
158
|
2. Update `HISTORY.md`
|
|
159
|
-
3.
|
|
160
|
-
|
|
159
|
+
3. Commit and push those changes
|
|
160
|
+
4. Run `./script/release`
|
|
161
|
+
5. [Create a release on GitHub](https://github.com/CloudCannon/cloudcannon-jekyll/releases/new)
|
|
161
162
|
|
|
162
163
|
### Testing
|
|
163
164
|
|
|
@@ -20,6 +20,7 @@ module CloudCannonJekyll
|
|
|
20
20
|
@data_dir = Paths.data_dir(site)
|
|
21
21
|
@split_posts = group_by_category_folder(all_posts, 'posts')
|
|
22
22
|
@split_drafts = group_by_category_folder(all_drafts, 'drafts')
|
|
23
|
+
@uses_jekyll_paginate_v2 = defined?(Jekyll::PaginateV2::Generator::PaginationPage) == 'constant'
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def generate_collections_config
|
|
@@ -214,6 +215,9 @@ module CloudCannonJekyll
|
|
|
214
215
|
def document_path(doc)
|
|
215
216
|
path = if doc.respond_to?(:collection) && doc.collection
|
|
216
217
|
File.join(@collections_dir, doc.relative_path)
|
|
218
|
+
elsif @uses_jekyll_paginate_v2 && doc.is_a?(Jekyll::PaginateV2::Generator::PaginationPage)
|
|
219
|
+
parts = doc.relative_path.split(File::SEPARATOR).drop(1)
|
|
220
|
+
File.join('/', *parts)
|
|
217
221
|
else
|
|
218
222
|
doc.relative_path
|
|
219
223
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudcannon-jekyll
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CloudCannon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|