adding new section

This commit is contained in:
2022-12-02 18:29:17 +02:00
parent ffbdccb263
commit 2eaa344ed0
7 changed files with 51 additions and 12 deletions

View File

@ -7,6 +7,7 @@ module Merged
end
def bg(section)
return "" if section.image.blank?
puts "--#{Image.image_root}/#{section.image}--"
img = asset_url( "#{Image.image_root}/#{section.image}" )
"background-image: url('#{img}');"