2016-12-18 23:20:39 +09:00
|
|
|
!!! 5
|
2017-05-08 10:35:25 +09:00
|
|
|
%html{ lang: I18n.locale }
|
2016-12-18 23:20:39 +09:00
|
|
|
%head
|
2017-05-08 10:35:25 +09:00
|
|
|
%meta{ charset: 'utf-8' }/
|
2017-07-14 23:41:02 +09:00
|
|
|
%meta{ name: 'robots', content: 'noindex' }/
|
|
|
|
|
2018-10-12 09:19:10 +09:00
|
|
|
- if cdn_host?
|
|
|
|
%link{ rel: 'dns-prefetch', href: cdn_host }/
|
2020-10-13 08:19:35 +09:00
|
|
|
%meta{ name: 'cdn-host', content: cdn_host }/
|
2018-10-12 09:19:10 +09:00
|
|
|
|
|
|
|
- if storage_host?
|
|
|
|
%link{ rel: 'dns-prefetch', href: storage_host }/
|
|
|
|
|
2024-04-28 05:34:41 +09:00
|
|
|
= stylesheet_pack_tag 'flavours/vanilla/common', media: 'all', crossorigin: 'anonymous' # upstream uses `common` but that's implicitly defined
|
|
|
|
= stylesheet_pack_tag current_theme, media: 'all', crossorigin: 'anonymous'
|
|
|
|
= javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
|
2018-08-22 23:54:09 +09:00
|
|
|
- if @theme
|
|
|
|
- if @theme[:supported_locales].include? I18n.locale.to_s
|
2023-07-30 20:42:06 +09:00
|
|
|
= preload_pack_asset "locales/#{@theme[:flavour]}/#{I18n.locale}-json.js"
|
2018-08-22 23:54:09 +09:00
|
|
|
- elsif @theme[:supported_locales].include? 'en'
|
2023-07-30 20:42:06 +09:00
|
|
|
= preload_pack_asset "locales/#{@theme[:flavour]}/en-json.js"
|
2024-04-28 05:34:41 +09:00
|
|
|
= preload_pack_asset "locale/#{I18n.locale}-json.js"
|
|
|
|
= render_initial_state
|
2017-11-21 15:13:37 +09:00
|
|
|
= render partial: 'layouts/theme', object: @theme
|
2018-10-23 00:51:38 +09:00
|
|
|
|
2016-12-18 23:20:39 +09:00
|
|
|
%body.embed
|
|
|
|
= yield
|
2020-01-19 03:50:43 +09:00
|
|
|
|
2022-06-11 00:34:59 +09:00
|
|
|
.logo-resources{ 'tabindex' => '-1', 'inert' => true, 'aria-hidden' => true }
|
2024-03-19 23:17:18 +09:00
|
|
|
= inline_svg_tag 'logo-symbol-icon.svg'
|