Update post page design

This commit is contained in:
2023-04-09 09:31:03 +10:00
parent 3ebdcc2422
commit d22edceadc
3 changed files with 25 additions and 9 deletions

View File

@@ -16,6 +16,14 @@ module Adamantium
posts = post_repo.from_the_archives(start_date: start_date, end_date: end_date)
posts.map { |p| Decorators::Posts::Decorator.new(p) }
end
expose :text_posts do |past_posts|
past_posts.reject(&:photos?)
end
expose :photo_posts do |past_posts|
past_posts.select(&:photos?)
end
end
end
end