first hero section on index

This commit is contained in:
2022-11-22 19:44:34 +02:00
parent d087af0879
commit ee479cdffc
6 changed files with 39 additions and 1 deletions

View File

@ -1,2 +1,12 @@
module CmsHelper
# sectio should be hash with at least 'template' key
def find_template(section)
"sections/" + section["template"]
end
def bg(section)
#{'background-image' => url('#{image_url('cms/' + section['image'])}')}
img = image_url "cms/house.jpg"
"background-image: url('#{img}');"
end
end