gab-social/app/views/layouts/application.html.haml

44 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-07-02 08:10:25 +01:00
!!! 5
%html{ lang: I18n.locale }
%head
%meta{ charset: 'utf-8' }/
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1', 'viewport-fit': 'cover' }/
2019-07-02 08:10:25 +01:00
- if cdn_host?
%link{ rel: 'dns-prefetch', href: cdn_host }/
- if storage_host?
%link{ rel: 'dns-prefetch', href: storage_host }/
%link{ rel: 'icon', href: favicon_path, type: 'image/x-icon' }/
%link{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }/
%link{ rel: 'mask-icon', href: '/mask-icon.svg', color: '#2B90D9' }/
%link{ rel: 'manifest', href: '/manifest.json' }/
%meta{ name: 'msapplication-config', content: '/browserconfig.xml' }/
2020-05-03 06:22:49 +01:00
%meta{ name: 'theme-color', content: '#21D07B' }/
2019-07-02 08:10:25 +01:00
%meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }/
- if @tag
= render 'tags/meta', tag: @tag, initial_state_json: @initial_state_json
- elsif @stream_entry && @account
= render 'stream_entries/meta', stream_entry: @stream_entry, account: @account
2019-11-18 03:30:54 +00:00
- elsif @account && @account.local?
= render 'accounts/meta', account: @account, older_url: nil, newer_url: nil
2020-04-28 06:33:58 +01:00
- else
- description = strip_tags(t('about.about_gabsocial_html'))
%meta{ name: 'description', content: description }/
2019-07-02 08:10:25 +01:00
%title= content_for?(:page_title) ? safe_join([yield(:page_title).chomp.html_safe, title], ' - ') : title
2020-01-23 16:35:36 +00:00
= stylesheet_pack_tag 'common', media: 'all'
2019-07-02 08:10:25 +01:00
= javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
= javascript_pack_tag "locale_#{I18n.locale}", integrity: true, crossorigin: 'anonymous'
= csrf_meta_tags
- if Setting.custom_css.present?
= stylesheet_link_tag custom_css_path, media: 'all'
= yield :header_tags
%body{ class: body_classes }
2020-02-03 18:24:24 +00:00
= content_for?(:content) ? yield(:content) : yield