You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
846 B

7 years ago
  1. !!! 5
  2. %html{ lang: I18n.locale }
  3. %head
  4. %meta{ charset: 'utf-8' }/
  5. %meta{ name: 'robots', content: 'noindex' }/
  6. - if cdn_host?
  7. %link{ rel: 'dns-prefetch', href: cdn_host }/
  8. - if storage_host?
  9. %link{ rel: 'dns-prefetch', href: storage_host }/
  10. = javascript_pack_tag "locales", integrity: true, crossorigin: 'anonymous'
  11. - if @theme
  12. - if @theme[:supported_locales].include? I18n.locale.to_s
  13. = javascript_pack_tag "locales/#{@theme[:flavour]}/#{I18n.locale}", integrity: true, crossorigin: 'anonymous'
  14. - elsif @theme[:supported_locales].include? 'en'
  15. = javascript_pack_tag "locales/#{@theme[:flavour]}/en", integrity: true, crossorigin: 'anonymous'
  16. = render partial: 'layouts/theme', object: @core
  17. = render partial: 'layouts/theme', object: @theme
  18. %body.embed
  19. = yield