fix #91
This commit is contained in:
parent
7ac055d4cd
commit
7fc751dc2e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue