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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd3e4826b181fb4ef65a89bb32d863c0aa61918b00ec81a49c02450f3bb141e2
4
- data.tar.gz: 8031b3e4c93bfa7ab139691b5dad29f93de7d1457fb3e140f27abdd4f7c8df96
3
+ metadata.gz: d93973921d4a4f673b82f8b23f7e67b563e550bf62708631310ad0cc92a21e9c
4
+ data.tar.gz: c1fbf58e6378b8b66703a9f25d0db3e9399b3a5324605ef891aaf009799abe02
5
5
  SHA512:
6
- metadata.gz: c9d4070e718c37c728f60c8a6ed256b4d8dd7a1ab4a64943d27d505644a8718aad0379c5ba657124d4a10b85dd646eb86daa50d8f37c032f2f0a646333f436b4
7
- data.tar.gz: 5163fbb5f10c2bf0a920da5f440d6bf4ecbae933c45a3a117d5cad9713352ac92116ccb69d3d8919e49fcdad0ad9cd17f29865aafded895e947104514deed198
6
+ metadata.gz: cf473d7f0222da25f2bfe7c3b04065b474fec51d9c2820e27966b5d50d49369e8f41c854ad19e21ae330a585869e08e724c9ee7daec1f8c0fb1db00612758a19
7
+ data.tar.gz: ea1826a618609914b83cc038ee058e453e8ca60400bd36d454bee5a891932a6970a36ed1d26fead1b57ed358dbecc4e6544038175642d4745bd3656e57dc49a9
data/HISTORY.md CHANGED
@@ -1,7 +1,15 @@
1
- # 3.2.1
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. Run `./script/release`
160
- 3. [Create a release on GitHub](https://github.com/CloudCannon/cloudcannon-jekyll/releases/new)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = '3.2.1'
4
+ VERSION = '3.2.3'
5
5
  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.1
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-09-29 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll