This commit is contained in:
Lorin Werthen 2016-10-10 01:31:22 +02:00
parent 7ac055d4cd
commit 7fc751dc2e

View file

@ -19,8 +19,8 @@ module ArchiveHelper
end
def posts_in_year(academic_year)
items.find_all('/posts/**/*').select do |post|
items.find_all('/posts/**/*').sort_by { |x| Date.parse x[:created_at] }.select do |post|
post[:academic_year] == academic_year
end
end.reverse
end
end