Sha256: dea31f1a2cad8f6ceab866de079bb92460d6d7343c27f8abe533bc604e498c79

Contents?: true

Size: 1.1 KB

Versions: 34

Compression:

Stored size: 1.1 KB

Contents

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

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

- 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

34 entries across 34 versions & 1 rubygems

Version Path
workarea-storefront-3.4.45 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.44 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.43 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.42 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.41 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.40 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.39 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.38 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.37 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.36 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.35 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.34 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.33 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.32 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.31 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.30 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.29 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.28 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.27 app/views/workarea/storefront/pages/show.html.haml
workarea-storefront-3.4.26 app/views/workarea/storefront/pages/show.html.haml