jekyll-categorize-pages 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-categorize-pages.rb +6 -2
- metadata +43 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1896b80e78ab30a1d0f50b787d3bf22cfe8213a3
|
4
|
+
data.tar.gz: db6b1f62a2ceb557b0c80269340cac496087d888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a482ec1ff54593f85236ec97fe28a49baa196600affbf588b5f24ea017734d673aa022d57841a7f5b45ae0babed88960e00ee9712a3c35f56aff3c9362c359b
|
7
|
+
data.tar.gz: ed0402765442030bbb8cd504bec6061b67e0d623762d822ba2a4659cb1da7845f7435111eda1fc4c1d45d44275269d4f137bae344e468c702a1ad20b4db35e42
|
@@ -13,11 +13,15 @@ module Jekyll
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def add_category_and_sub_category(item, values)
|
16
|
+
puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
17
|
+
puts "values: #{values}"
|
16
18
|
item.data["category"] = values[:category]
|
17
19
|
item.data["sub_category"] = values[:sub_category]
|
18
20
|
end
|
19
21
|
|
20
22
|
def add_category_only(item, values)
|
23
|
+
puts "###################################"
|
24
|
+
puts "values: #{values}"
|
21
25
|
item.data["category"] = values[:category]
|
22
26
|
end
|
23
27
|
|
@@ -46,8 +50,8 @@ module Jekyll
|
|
46
50
|
|
47
51
|
def get_header_values_to_add(item)
|
48
52
|
all_categories = @site.data["all_categories"] || [] # sub folders inside collection
|
49
|
-
puts "-----------------------"
|
50
|
-
puts "all_categories: #{all_categories}"
|
53
|
+
# puts "-----------------------"
|
54
|
+
# puts "all_categories: #{all_categories}"
|
51
55
|
# puts "item.relative_path: #{item.relative_path}"
|
52
56
|
|
53
57
|
path = item.relative_path.split('/')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-categorize-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
27
69
|
description:
|
28
70
|
email:
|
29
71
|
- ''
|