last story and last picture section style
This commit is contained in:
3
app/views/merged/view/_section_pictures.haml
Normal file
3
app/views/merged/view/_section_pictures.haml
Normal file
@ -0,0 +1,3 @@
|
||||
.mx-20.grid.grid-cols-1.md:grid-cols-2.lg:grid-cols-3.2xl:grid-cols-4.gap-8.md:gap-12.lg:gap-16
|
||||
- Picture.all.limit(4).each do |picture|
|
||||
= render "pictures/picture" , picture: picture
|
2
app/views/merged/view/_section_story.haml
Normal file
2
app/views/merged/view/_section_story.haml
Normal file
@ -0,0 +1,2 @@
|
||||
- story = Story.last
|
||||
= render_story story
|
Reference in New Issue
Block a user