jekyll-archives-v2 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-archives-v2/page_drop.rb +1 -1
- data/lib/jekyll-archives-v2/version.rb +1 -1
- data/lib/jekyll-archives-v2.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeffa5542596c45561904b62fcd4c27ceee177f3f6bc7eb5fc818818ea86fd99
|
4
|
+
data.tar.gz: 896a5482cba4b56f1acae2b9236ab5636bbb50f706e15611c15f42f395b3c1ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcfb9cb730b072273a7e9451ff060bbc4d11799623c75fea1b204b4bbe9ec3dded5c3cb08dc187039b164aaa8c7a96975333a984f790baa98033aba82d05384b
|
7
|
+
data.tar.gz: f48cabd373427655c51b92f0ae4098f9fd38306b359f53fd0095a4a69de99cf90f89b61c5c863d4bbb4c407f045c58a84f6a5ab5512f191381bf30c6035b55ee
|
@@ -7,7 +7,7 @@ module Jekyll
|
|
7
7
|
|
8
8
|
mutable false
|
9
9
|
|
10
|
-
def_delegators :@obj, :
|
10
|
+
def_delegators :@obj, :collection_name, :documents, :type, :title, :date, :name, :path, :url, :permalink
|
11
11
|
private def_delegator :@obj, :data, :fallback_data
|
12
12
|
end
|
13
13
|
end
|
data/lib/jekyll-archives-v2.rb
CHANGED
@@ -85,11 +85,11 @@ module Jekyll
|
|
85
85
|
|
86
86
|
def read_dates(collection_name)
|
87
87
|
years(@collections[collection_name]).each do |year, y_documents|
|
88
|
-
append_enabled_date_type({ :year => year }, "year", collection_name,
|
88
|
+
append_enabled_date_type({ :year => year }, "year", collection_name, y_documents)
|
89
89
|
months(y_documents).each do |month, m_documents|
|
90
|
-
append_enabled_date_type({ :year => year, :month => month }, "month", collection_name,
|
90
|
+
append_enabled_date_type({ :year => year, :month => month }, "month", collection_name, m_documents)
|
91
91
|
days(m_documents).each do |day, d_documents|
|
92
|
-
append_enabled_date_type({ :year => year, :month => month, :day => day }, "day", collection_name,
|
92
|
+
append_enabled_date_type({ :year => year, :month => month, :day => day }, "day", collection_name, d_documents)
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
@@ -97,7 +97,7 @@ module Jekyll
|
|
97
97
|
|
98
98
|
# Checks if archive type is enabled in config
|
99
99
|
def enabled?(collection_name, archive)
|
100
|
-
@enabled == true || @enabled == "all" || (@enabled.is_a?(Array) && @enabled.include?(archive))
|
100
|
+
@config[collection_name]["enabled"] == true || @config[collection_name]["enabled"] == "all" || (@config[collection_name]["enabled"].is_a?(Array) && @config[collection_name]["enabled"].include?(archive))
|
101
101
|
end
|
102
102
|
|
103
103
|
def tags(documents)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-archives-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Corrêa de Araújo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|