app/views/layouts/workarea/storefront/application.html.haml in workarea-storefront-3.4.45 vs app/views/layouts/workarea/storefront/application.html.haml in workarea-storefront-3.5.0.beta.1

- old
+ new

@@ -1,7 +1,8 @@ - add_css(layout_content.css) - add_javascript(layout_content.javascript) +- add_head_content(layout_content.head_content) !!! / Platform: Workarea Ecommerce Web: http://workarea.com @@ -29,25 +30,17 @@ = yield :css = append_partials('storefront.document_head') = javascript_include_tag Workarea.config.asset_manifests.storefront_javascript_head - %script{ type: 'application/ld+json' } - :plain - { - "@context": "http://schema.org", - "@type": "WebSite", - "url": "#{root_url}", - "potentialAction": { - "@type": "SearchAction", - "target": "#{search_url}?q={search_term_string}", - "query-input": "required name=search_term_string" - } - } + = render_schema_org(web_site_schema) + = render_schema_org(web_page_schema) + = yield :head_content + = yield :javascript_head - %body{ itemscope: true, itemtype: 'http://schema.org/WebPage' } + %body = append_partials('storefront.body_top') %nav.accessibility-nav.visually-hidden = link_to t('workarea.storefront.layouts.accessibility_info'), accessibility_path = link_to t('workarea.storefront.layouts.main_content'), '#main_content', accesskey: 'S' @@ -88,11 +81,12 @@ = link_to image_tag('workarea/storefront/logo.png', alt: t('workarea.storefront.layouts.logo'), class: 'page-header__logo', width: 256), root_path, rel: 'home' .grid__cell.grid__cell--50-at-medium .page-header__search = form_tag search_path, method: 'get', class: 'page-header__search-form', role: 'search' do .page-header__search-value - .value= search_field_tag :q, params[:q], id: 'storefront_search', class: 'text-box', title: t('workarea.storefront.searches.search'), aria: { label: t('workarea.storefront.searches.search') }, placeholder: t('workarea.storefront.searches.search'), data: { search_field: '' } + .value= search_field_tag :q, params[:q], id: 'storefront_search', class: 'text-box', title: t('workarea.storefront.searches.search'), aria: { label: t('workarea.storefront.searches.search') }, placeholder: t('workarea.storefront.searches.search') + = append_partials('storefront.page_header_search_value') .page-header__search-button= button_tag t('workarea.storefront.forms.go'), value: 'search', class: 'button' %nav#navigation.primary-nav %ul.primary-nav__menu - navigation_menus.each do |menu| @@ -110,13 +104,15 @@ .content-wrapper - if content_for?(:breadcrumbs) .breadcrumbs{ role: 'navigation' } = yield :breadcrumbs - elsif @breadcrumbs.present? + = render_schema_org(breadcrumb_list_schema(@breadcrumbs.map { |t| [t.name, storefront_url_for(t)] })) + .breadcrumbs{ role: 'navigation' } %p.breadcrumbs__node-group - @breadcrumbs.each do |taxon| - %span.breadcrumbs__node{ itemprop: 'breadcrumb' } + %span.breadcrumbs__node - if taxon.navigable.present? - if @breadcrumbs.last == taxon %span.breadcrumbs__text= taxon.name - else = link_to taxon.name, storefront_path_for(taxon), class: 'breadcrumbs__link'