lib/hx/listing/datearchive.rb in hx-0.17.0 vs lib/hx/listing/datearchive.rb in hx-0.18.0
- old
+ new
@@ -41,10 +41,10 @@
@index_name = options[:index_name] || "index"
end
def each_entry(selector)
indices = {}
- @input.each_entry_path(Path::ALL) do |path, entry|
+ @input.each_entry(Path::ALL) do |path, entry|
date = @date_fields.map { |field| entry[field] }.compact.first
next unless date
month_path = "%04d/%02d/#{@index_name}" % [date.year, date.month]
year_path = "%04d/#{@index_name}" % [date.year]
for index_path in [month_path, year_path]