From 808ce40944e39a68a356d4f53b3f2139b992279b Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Tue, 26 Sep 2017 09:25:46 +0200 Subject: [PATCH] Fix cp fail --- lib/articlehelpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/articlehelpers.rb b/lib/articlehelpers.rb index 67f03aea..a3f78d31 100644 --- a/lib/articlehelpers.rb +++ b/lib/articlehelpers.rb @@ -35,7 +35,7 @@ end def latest_articles(max=nil, threshold_days=90) @cache_latest_art ||= @site.items.select do |p| - p.attributes[:kind] == 'article' and ((threshold_days <= 0) + p.attributes[:kind] == 'article' end.sort do |a, b| a.attributes[:created_at] <=> b.attributes[:created_at] end.reverse