5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 06:31:44 +00:00

mostrar la imagen de fondo cuando no hay ninguna

This commit is contained in:
f 2018-12-11 13:17:15 -03:00
parent 7de042caa3
commit 23930abab7
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -6,7 +6,8 @@
= csrf_meta_tags
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? "background-image: url(#{@site.try(:cover)})": ''}
- style = "background-image: url(#{@site.try(:cover) || image_url('background.jpg')})"
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? style : ''}
.container-fluid
= yield
%footer.footer