5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 05:16:22 +00:00
panel/app/views/layouts/application.html.haml

15 lines
666 B
Text
Raw Permalink Normal View History

2018-01-29 18:09:30 +00:00
!!!
%html
%head
%meta{content: "text/html; charset=UTF-8", 'http-equiv': "Content-Type"}/
%title Sutty
= csrf_meta_tags
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
2018-02-03 14:02:21 +00:00
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
2019-01-09 20:37:34 +00:00
- if @site.try(:config).try(:dig, 'css')
%link{rel: 'stylesheet', type: 'text/css', href: @site.get_url_from_site(@site.config.dig('css'))}
- style = "background-image: url(#{@site.try(:cover) || image_url('background.jpg')})"
%body{class: @has_cover ? 'background-cover' : '', style: @has_cover ? style : ''}
2019-02-11 19:15:40 +00:00
#sutty.container-fluid
2018-01-29 18:09:30 +00:00
= yield