jekyll-archives-v2 0.0.1 → 0.0.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: bd3853c2320099f7c356af52603b8cbcbe353a220a5b3f59ae5a4a54c087d9ec
4
- data.tar.gz: 77a4dbb8bb3342964b79b224767c8d43805ad6640c2af2114ac826bc5645f9ec
3
+ metadata.gz: eeffa5542596c45561904b62fcd4c27ceee177f3f6bc7eb5fc818818ea86fd99
4
+ data.tar.gz: 896a5482cba4b56f1acae2b9236ab5636bbb50f706e15611c15f42f395b3c1ae
5
5
  SHA512:
6
- metadata.gz: a25f649119ae3f1d982dfb41898af49c2898793b9057a8c45c64aaee20450d68e6002dcea3964bb46bb42372f381dd5497f205015884174d74ce33ca2cd7d6fb
7
- data.tar.gz: 7c9fae3f1f46bd596d301337d2680210de53d797f07f22200ac5cb0737de183908686d2c2b897378406bde1499f9298ffacd2b51919f75300f0b412daf89fcd4
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, :posts, :type, :title, :date, :name, :path, :url, :permalink
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module ArchivesV2
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
@@ -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, y_posts)
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, m_posts)
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, d_posts)
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -120,10 +120,10 @@ executables: []
120
120
  extensions: []
121
121
  extra_rdoc_files: []
122
122
  files:
123
+ - lib/jekyll-archives-v2.rb
123
124
  - lib/jekyll-archives-v2/archive.rb
124
125
  - lib/jekyll-archives-v2/page_drop.rb
125
126
  - lib/jekyll-archives-v2/version.rb
126
- - lib/jekyll-archives.rb
127
127
  homepage: https://github.com/george-gca/jekyll-archives-v2
128
128
  licenses:
129
129
  - MIT
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.4.20
146
+ rubygems_version: 3.5.11
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Collections archives for Jekyll.