logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

application.html.haml (1400B)


  1. !!! 5
  2. %html{ lang: I18n.locale }
  3. %head
  4. %meta{ charset: 'utf-8' }/
  5. %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1' }/
  6. %link{ rel: 'icon', href: favicon_path, type: 'image/x-icon' }/
  7. %link{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }/
  8. %link{ rel: 'mask-icon', href: '/mask-icon.svg', color: '#2B90D9' }/
  9. %link{ rel: 'manifest', href: '/manifest.json' }/
  10. %meta{ name: 'msapplication-config', content: '/browserconfig.xml' }/
  11. %meta{ name: 'theme-color', content: '#282c37' }/
  12. %meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }/
  13. %title= content_for?(:page_title) ? safe_join([yield(:page_title).chomp.html_safe, title], ' - ') : title
  14. = stylesheet_pack_tag 'common', media: 'all'
  15. = stylesheet_pack_tag current_theme, media: 'all'
  16. = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
  17. = javascript_pack_tag "locale_#{I18n.locale}", integrity: true, crossorigin: 'anonymous'
  18. = csrf_meta_tags
  19. = yield :header_tags
  20. - body_classes ||= @body_classes || ''
  21. - body_classes += ' system-font' if current_account&.user&.setting_system_font_ui
  22. - body_classes += current_account&.user&.setting_reduce_motion ? ' reduce-motion' : ' no-reduce-motion'
  23. %body{ class: add_rtl_body_class(body_classes) }
  24. = content_for?(:content) ? yield(:content) : yield