cloudcannon-jekyll 3.2.2 → 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: 8827937e894ba56efca73b59add267f415a82b2c2b07070cbc0f3ccd71f354d3
4
- data.tar.gz: 384fa1272fe5ecf282653377b97e40a6da9bd8dadb0eaa6eec350693be1eb6f6
3
+ metadata.gz: d93973921d4a4f673b82f8b23f7e67b563e550bf62708631310ad0cc92a21e9c
4
+ data.tar.gz: c1fbf58e6378b8b66703a9f25d0db3e9399b3a5324605ef891aaf009799abe02
5
5
  SHA512:
6
- metadata.gz: 8180b1bd8e188367d0f60709a539f48c7b62aead0adb49d92a4e7205e7eb5517244424c209f037063eb72500b5ef932e079320247a7a0e6790494d3f2bcdcf65
7
- data.tar.gz: 58678a43838afe626a2f207a4ebcb09ae5a37071943a22f7dbd29d27aa4d8bb8ae83900193dbf12b5d0ed8cb9f654f7b205d4d0c71ac282a8599dcb8a4d9ab48
6
+ metadata.gz: cf473d7f0222da25f2bfe7c3b04065b474fec51d9c2820e27966b5d50d49369e8f41c854ad19e21ae330a585869e08e724c9ee7daec1f8c0fb1db00612758a19
7
+ data.tar.gz: ea1826a618609914b83cc038ee058e453e8ca60400bd36d454bee5a891932a6970a36ed1d26fead1b57ed358dbecc4e6544038175642d4745bd3656e57dc49a9
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.2.3
2
+
3
+ * Fixed malformed paths on index pages caused by jekyll-paginate-v2
4
+
1
5
  # 3.2.2
2
6
 
3
7
  * Pass through any keys in the global configuration file
@@ -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.2'
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.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-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