column number option for 2_col, also bg
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
.flex.flex-col.bg-cyan-100.mx-5
|
||||
.flex.flex-col.mx-5{ background_option(section)}
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-prose.px-4.py-8.mx-auto.text-center
|
||||
%h1.text-2xl.font-bold.tracking-tight.text-gray-900.sm:text-4xl
|
||||
@ -6,6 +6,6 @@
|
||||
%p.mt-4.text-gray-500
|
||||
= section.text
|
||||
- template = "merged/view/cards/" + section.card_template
|
||||
.grid.grid-cols-1.md:grid-cols-2
|
||||
.grid{ column_option(section)}
|
||||
- section.cards.each do |element|
|
||||
= render( template , element: element)
|
||||
|
Reference in New Issue
Block a user