2019-07-02 08:10:25 +01:00
!!! 5
%html{ lang: I18n.locale }
%head
%meta{ charset: 'utf-8' }/
2020-05-06 07:24:16 +01:00
2020-06-15 18:27:50 +01:00
%meta{ name: 'viewport', content: 'width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,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' }/
2020-05-14 22:10:39 +01:00
2020-05-15 00:07:58 +01:00
%link{ href: "splash/#{theme}/iphone5_splash.png", media: '(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/iphone6_splash.png", media: '(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/iphoneplus_splash.png", media: '(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/iphonex_splash.png", media: '(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/iphonexr_splash.png", media: '(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/iphonexsmax_splash.png", media: '(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/ipad_splash.png", media: '(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/ipadpro1_splash.png", media: '(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/ipadpro3_splash.png", media: '(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
%link{ href: "splash/#{theme}/ipadpro2_splash.png", media: '(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)', rel: 'apple-touch-startup-image' }/
2020-05-14 22:10:39 +01:00
2019-07-02 08:10:25 +01:00
%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' }/
2020-05-14 22:15:11 +01:00
%meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }/
2019-07-02 08:10:25 +01:00
2020-05-27 01:12:19 +01:00
- if @stream_entry && @account
2019-08-17 06:23:21 +01:00
= render 'stream_entries/meta', stream_entry: @stream_entry, account: @account
2019-11-18 03:30:54 +00:00
- elsif @account && @account.local?
2019-08-17 06:23:21 +01:00
= render 'accounts/meta', account: @account, older_url: nil, newer_url: nil
2020-07-22 05:06:47 +01:00
- elsif @group
= render 'groups/meta', group: @group
2020-08-19 02:02:02 +01:00
- else
%meta{ name: 'description', content: 'Gab is a social network that champions free speech, individual liberty and the free flow of information online. All are welcome.' }/
2019-08-17 06:23:21 +01:00
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
= yield :header_tags
%body{ class: body_classes }
2020-02-03 18:24:24 +00:00
= content_for?(:content) ? yield(:content) : yield