sutty/app/views/layouts/application.html.haml

27 lines
785 B
Plaintext
Raw Normal View History

2018-01-29 18:09:30 +00:00
!!!
%html
%head
2019-07-26 00:08:37 +00:00
%meta{ content: 'text/html; charset=UTF-8',
'http-equiv': 'Content-Type' }/
2018-01-29 18:09:30 +00:00
%title Sutty
2019-07-26 00:08:37 +00:00
2018-01-29 18:09:30 +00:00
= csrf_meta_tags
2019-07-26 00:08:37 +00:00
= stylesheet_link_tag 'application', media: 'all',
'data-turbolinks-track': 'reload'
= javascript_include_tag 'application',
'data-turbolinks-track': 'reload'
2019-07-12 23:40:44 +00:00
- if @site.try(:persisted?) && @site.try(:config).try(:dig, 'css')
2019-07-26 00:08:37 +00:00
%link{ rel: 'stylesheet',
type: 'text/css',
href: @site.get_url_from_site(@site.config.dig('css')) }
- style = "background-image: url(#{@site.try(:cover)})"
-# haml-lint:disable InlineStyles
%body{ class: @has_cover ? 'background-cover' : '',
style: @has_cover ? style : '' }
.container-fluid#sutty
2018-01-29 18:09:30 +00:00
= yield
2019-07-26 00:08:37 +00:00
-# haml-lint:enable InlineStyles