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:
parent
7de042caa3
commit
23930abab7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue