jekyll-order 0.1.2 → 0.1.3

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: bae1f8910325bf7b98f91a7f7e0f63904630047e79abd802e2e573c7dd01f7f0
4
- data.tar.gz: '04808175c17720eb1cdedf87b5746b8148934cb35c19a7637990075eb371f15b'
3
+ metadata.gz: f4e5614901aa22f1588c230ef739912c15b36e7d9798d96e2ae3d24908e32e50
4
+ data.tar.gz: ffb9ecdd369c6289495f412cb0ca01cb69d4b3d953fa95022d8bc59ca2361854
5
5
  SHA512:
6
- metadata.gz: 5998ba142b16c8c9f7923c62fbc04a41f0c783188898b7518abf702a6b14ca0851d4cea817daacea1e41d81cea0281aa32212f35bf0d00fdc5c158f3ce6ce5e6
7
- data.tar.gz: 306eeb9bb6c68cfcc78594e724676d79aca16a19fba5a5620d816725256417b3bab96feb0f15e25b50b6c628a35ce382f3fd80c4dc823b5bd8cc8a61e96fab12
6
+ metadata.gz: 8afa282aaef45975763ba788c1872b52d3f2b5a01a201cc4bb5b6050247d95a06c727fec4dfdb0699687bcc3b07da77f5f785eb28aedd8cb698d52ae373b92a5
7
+ data.tar.gz: a6244b345e9955fc6d228afb164dbdb27e524e052dbf9aa03a116cb9a1857c7f97f5f932ae6e2375ffa8238f264eeb67d3acbb63f3d7c31269930934dfe13534
@@ -9,8 +9,7 @@ module Jekyll
9
9
  class SiteDrop
10
10
  def posts
11
11
  @site_posts ||= @obj.posts.docs.sort_by do |post|
12
- [post.data.fetch('order', @obj.posts.docs.size + 1),
13
- post.data['date']]
12
+ [post.data.dig('order').to_i, post.data['date']]
14
13
  end.reverse
15
14
  end
16
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Order
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-order
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.0.3
85
+ rubygems_version: 3.1.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Jekyll plugin for numeric ordering of posts