Sha256: c5da488319541c4a96df31810e358b07809b75b55f73e7e0454ff2f545435056

Contents?: true

Size: 1.14 KB

Versions: 28

Compression:

Stored size: 1.14 KB

Contents

- @title = @page.browser_title
- @breadcrumbs = @page.breadcrumbs

- add_css(@page.css)
- add_javascript(@page.javascript)
- add_head_content(@page.head_content)

- content_for :head do
  - cache "#{@page.cache_key}/head", expires_in: Workarea.config.cache_expirations.pages_fragment_cache do
    %meta{ property: 'global-id', content: @page.to_global_id.to_param }

    %link{ href: page_url(@page), rel: 'canonical' }
    %meta{ name: :description, content: @page.meta_description }

    %meta{ property: 'og:url', content: url_for(only_path: false) }
    %meta{ property: 'og:title', content: page_title }
    %meta{ property: 'og:type', content: 'website' }
    %meta{ property: 'og:image', content: @page.open_graph_asset.url }
    %meta{ property: 'og:image:secure_url', content: @page.open_graph_asset.url }

- if @page.show_navigation?
  - content_for :page_aside do
    - cache "#{@page.cache_key}/aside", expires_in: Workarea.config.cache_expirations.pages_fragment_cache do
      = left_navigation

.view
  %h1{ class: @page.display_h1? ? nil : 'visually-hidden' }= @page.name

  = render "workarea/storefront/pages/templates/#{@page.template}", page: @page

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.26 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.25 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.23 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.22 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.21 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.20 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.19 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.18 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.17 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.16 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.15 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.14 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.13 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.12 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.11 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.10 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.9 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.8 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.5.7 app/views/workarea/storefront/pages/show.html.haml