sutty-archives 2.5.4 → 2.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb592daa06ca58bbf77f312f433ed257ccfe66dbb90e804534b3197ef568bd4e
4
- data.tar.gz: 54fb504accc7dce42d17ed9705b7945fa60af35462c0bf720e1b23798bd35205
3
+ metadata.gz: 7a7b625f7e0e1136e25917a6344f4bd17cb3586d3b3a694319e9df032f70623b
4
+ data.tar.gz: 17b9d72719176cd4644da8f202a35085bfd7a2826f0bed22a216f77008e3d3a1
5
5
  SHA512:
6
- metadata.gz: a8039d82af08b99146d2e42e101a18e368d6cf685e1e1372d50356eb9e04bc2f65551c58da40414c169b1108f375a2f21d6a0ac45a279bf5960b6b961c21817e
7
- data.tar.gz: 4d909fd87f301e7b901a0beb073eb8109aeaae0fb909474beaf1eb2c3dfaf312ede520044d70592b78332395480e85b3e977f9a94e65447c300aa4846f6ce399
6
+ metadata.gz: e083687e93b7e0f8695b11828afded3f00044008d811ab2f6d46947dec8e1ece868d94fb1569f7b7851a5c3b94dc35709743419554e3fb2d5332cf23f9727615
7
+ data.tar.gz: 2d5754d60a815151a96243b838fcf8ffb898ec276ebb65321389473196e821eef8300e7af28458c56f1aa4f0bf2d1c843be3c7a5498668615b27f7c75f20dff8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Archives
5
- VERSION = "2.5.4"
5
+ VERSION = "2.5.5"
6
6
  end
7
7
  end
@@ -171,14 +171,21 @@ module Jekyll
171
171
  def read_types
172
172
  @config['enabled'].each do |type|
173
173
  type = LEGACY_ATTRS[type] if LEGACY_ATTRS[type]
174
+ posts = @site.config['archives'][type]&.map(&:posts)&.flatten&.uniq
174
175
 
175
- @archives << Archive.new(@site, type, 'group', @site.config['archives'][type].map(&:posts).flatten.uniq)
176
+ next unless posts
177
+
178
+ @archives << Archive.new(@site, type, 'group', posts)
176
179
  end
177
180
 
178
181
  return unless combined?
179
182
 
180
183
  @config['combined'].each do |type, _|
181
- @archives << Archive.new(@site, type, 'group', @site.config['archives'][type].map(&:posts).flatten.uniq)
184
+ posts = @site.config['archives'][type]&.map(&:posts)&.flatten&.uniq
185
+
186
+ next unless posts
187
+
188
+ @archives << Archive.new(@site, type, 'group', posts)
182
189
  end
183
190
  end
184
191
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-archives
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.4
4
+ version: 2.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alfred Xing
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-26 00:00:00.000000000 Z
12
+ date: 2022-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.1.2
147
+ rubygems_version: 3.3.5
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Post archives for Jekyll. Fork of jekyll-archives.