- add_css(layout_content.css) - add_javascript(layout_content.javascript) - if @content.present? - add_css(@content.css) - add_javascript(@content.javascript) - add_head_content(@content.head_content) !!! / Platform: Workarea Ecommerce Web: http://workarea.com Email: sales@workarea.com Phone: 215-925-1800 %html{ lang: 'en' } %head %meta{ charset: 'utf-8' } %title= page_title = csrf_meta_tags %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' } %meta{ property: 'locale', content: I18n.locale } %meta{ property: 'environment', content: Rails.env } %meta{ property: 'analytics', content: 'disable' } = alternate_locales_tags = render 'workarea/storefront/favicons/tags' %link{ rel: 'manifest', href: web_manifest_path } %meta{ name: 'theme-color', content: Workarea.config.web_manifest.theme_color } :css @-ms-viewport { width: device-width; } @viewport { width: device-width; } = yield :head = stylesheet_link_tag Workarea.config.asset_manifests.storefront_stylesheet, media: 'all' = yield :css = append_partials('storefront.document_head') = javascript_include_tag Workarea.config.asset_manifests.storefront_javascript_head %body{ data: { disable_admin_toolbar: '' }, class: ('content-preview-visibility' unless params[:disable_visibility_classes].presence) } - if @content.present? .clearfix{ data: { content_block: '' } }= yield - else = yield = javascript_include_tag Workarea.config.asset_manifests.storefront_javascript = yield :javascript = append_partials('storefront.javascript')