From 1b3f35c4c768446b9dd897e2986358e7343383f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Rusiczki?= Date: Tue, 3 Oct 2023 12:53:56 +0300 Subject: [PATCH] Testing... --- _plugins/year_utilities.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(', ')