diff --git a/lib/jekyll-archives.rb b/lib/jekyll-archives.rb index dbcb2a6..14e8105 100644 --- a/lib/jekyll-archives.rb +++ b/lib/jekyll-archives.rb @@ -60,6 +60,7 @@ def read def read_tags if enabled? "tags" tags.each do |title, posts| + Jekyll.logger.debug "Archives:" "Processing #{posts} with tag: #{title}" @archives << Archive.new(@site, title, "tag", posts) end end @@ -68,6 +69,7 @@ def read_tags def read_categories if enabled? "categories" categories.each do |title, posts| + Jekyll.logger.debug "Archives:" "Processing #{posts} with category: #{title}" @archives << Archive.new(@site, title, "category", posts) end end @@ -75,10 +77,13 @@ def read_categories def read_dates years.each do |year, y_posts| + Jekyll.logger.debug "Archives:" "Processing #{y_posts} in #{year}" append_enabled_date_type({ :year => year }, "year", y_posts) months(y_posts).each do |month, m_posts| + Jekyll.logger.debug "Archives:" "Proccessing #{m_posts} in #{year}-#{month}" append_enabled_date_type({ :year => year, :month => month }, "month", m_posts) days(m_posts).each do |day, d_posts| + Jekyll.logger.debug "Archives:" "Proccessing #{d_posts} on #{year}-#{month}-#{day}" append_enabled_date_type({ :year => year, :month => month, :day => day }, "day", d_posts) end end