From 068fa6081616afc675e8053205f2b11fe2c6e03d Mon Sep 17 00:00:00 2001 From: Armen Kaleshian Date: Sat, 16 Nov 2019 10:03:08 -0500 Subject: [PATCH 1/2] Add debug logging to assist in troubleshooting --- lib/jekyll-archives.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/jekyll-archives.rb b/lib/jekyll-archives.rb index b589524..7315bab 100644 --- a/lib/jekyll-archives.rb +++ b/lib/jekyll-archives.rb @@ -59,6 +59,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 @@ -67,6 +68,7 @@ def read_tags def read_categories if enabled? "categories" categories.each do |title, posts| + Jekyll.logger.debug "Archives:" "Processing #{posts} with tag: #{title}" @archives << Archive.new(@site, title, "category", posts) end end @@ -74,10 +76,13 @@ def read_categories def read_dates years.each do |year, posts| + Jekyll.logger.debug "Archives:" "Processing #{posts} in #{year}" @archives << Archive.new(@site, { :year => year }, "year", posts) if enabled? "year" months(posts).each do |month, posts| + Jekyll.logger.debug "Archives:" "Proccessing #{posts} in #{year}-#{month}" @archives << Archive.new(@site, { :year => year, :month => month }, "month", posts) if enabled? "month" days(posts).each do |day, posts| + Jekyll.logger.debug "Archives:" "Proccessing #{posts} on #{year}-#{month}-#{day}" @archives << Archive.new(@site, { :year => year, :month => month, :day => day }, "day", posts) if enabled? "day" end end From 8aa8c0595808ecae910737f852f82064e748c11b Mon Sep 17 00:00:00 2001 From: Armen Kaleshian Date: Tue, 19 Nov 2019 15:36:52 -0500 Subject: [PATCH 2/2] Fix mislabel of category as tag Co-Authored-By: Frank Taillandier --- lib/jekyll-archives.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-archives.rb b/lib/jekyll-archives.rb index 7315bab..2993e1b 100644 --- a/lib/jekyll-archives.rb +++ b/lib/jekyll-archives.rb @@ -68,7 +68,7 @@ def read_tags def read_categories if enabled? "categories" categories.each do |title, posts| - Jekyll.logger.debug "Archives:" "Processing #{posts} with tag: #{title}" + Jekyll.logger.debug "Archives:" "Processing #{posts} with category: #{title}" @archives << Archive.new(@site, title, "category", posts) end end