integrated section and card previews into page show

This commit is contained in:
2022-11-25 22:00:33 +02:00
parent 33bbae0ae5
commit 738bfe01a5
14 changed files with 19 additions and 13 deletions

View File

@ -5,7 +5,7 @@
= section["header"]
%p.mt-4.text-gray-500
= section["text"]
- template = "cards/" + section["element_template"]
- template = "cards/" + section["card_template"]
.grid.grid-cols-1.md:grid-cols-2
- section["elements"].each do |element|
- section["cards"].each do |element|
= render( template , element: element)