diff --git a/_plugins/year_utilities.rb b/_plugins/year_utilities.rb index 37253a64..c3c7fba2 100644 --- a/_plugins/year_utilities.rb +++ b/_plugins/year_utilities.rb @@ -20,7 +20,10 @@ def render(context) the_result = nil all_posts = context.registers[:site].posts.docs - years = all_posts.map { |post| post.date.year }.uniq + years = all_posts.map { |post| + puts post.date + post.date.year + }.uniq if @text.start_with? "year_links" years.map { |year| "#{year}" }.join(', ')