Fix cp fail

This commit is contained in:
Stefan Schlott 2017-09-26 09:25:46 +02:00
parent 718f6fb464
commit 808ce40944

View file

@ -35,7 +35,7 @@ end
def latest_articles(max=nil, threshold_days=90) def latest_articles(max=nil, threshold_days=90)
@cache_latest_art ||= @site.items.select do |p| @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| end.sort do |a, b|
a.attributes[:created_at] <=> b.attributes[:created_at] a.attributes[:created_at] <=> b.attributes[:created_at]
end.reverse end.reverse