jekyll-order 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Makefile +13 -0
- data/lib/jekyll-order.rb +1 -0
- data/lib/jekyll/filters/order.rb +15 -0
- data/lib/jekyll/order/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bde9f922e0887b6aa9ad61aedd71bc16687c934f5d2352285813444254ed1ae0
|
4
|
+
data.tar.gz: 1b3dd8f3d1b8304ca0caeb306e02d69a17bdddc8a848e7b18f2f34241d1dab3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cded0c9376bed939303a1cb330affd9cd33907d79687c8812d5f987e5026f3cf18cdecfb48dd5e29b1c4d1194aa77652d0b82b752aed3617332628f06ccbd3f0
|
7
|
+
data.tar.gz: 59d358012be29bd362da13c15a75059b79009c7bd582597fde203bf546925177107d1532aac8d7bfa81eef50e91e9d5e2995b94f4a088c9d9a87eae886417643
|
data/.gitignore
CHANGED
data/Makefile
ADDED
data/lib/jekyll-order.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Jekyll
|
4
|
+
module Filters
|
5
|
+
module Order
|
6
|
+
def order(input)
|
7
|
+
input.sort_by do |post|
|
8
|
+
[post.data.dig('order').to_i, post.data['date']]
|
9
|
+
end.reverse
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Liquid::Template.register_filter(Jekyll::Filters::Order)
|
data/lib/jekyll/order/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- CODE_OF_CONDUCT.md
|
50
50
|
- Gemfile
|
51
51
|
- LICENSE
|
52
|
+
- Makefile
|
52
53
|
- README.md
|
53
54
|
- Rakefile
|
54
55
|
- bin/console
|
@@ -57,6 +58,7 @@ files:
|
|
57
58
|
- lib/jekyll-order.rb
|
58
59
|
- lib/jekyll/archives/archive_decorator.rb
|
59
60
|
- lib/jekyll/drops/site_drop.rb
|
61
|
+
- lib/jekyll/filters/order.rb
|
60
62
|
- lib/jekyll/order.rb
|
61
63
|
- lib/jekyll/order/version.rb
|
62
64
|
homepage: https://0xacab.org/sutty/jekyll/jekyll-order
|