- @title = @entry.browser_title - @breadcrumbs = @breadcrumbs - add_css(@entry.css) - add_javascript(@entry.javascript) = render_schema_org(breadcrumb_list_schema([[t('workarea.storefront.layouts.home'), root_url], [@entry.blog.name, blog_url(@entry.blog)], [@entry.name, blog_entry_url(@entry)]])) = render_schema_org(blog_posting_schema(@entry)) - content_for :breadcrumbs do %p.breadcrumbs__node-group %span.breadcrumbs__node = link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home' %span.breadcrumbs__node = link_to @entry.blog.name, blog_path(@entry.blog) %span.breadcrumbs__node= @entry.name - content_for :head do %link{ href: blog_entry_path(@entry), rel: 'canonical' } %meta{ property: 'og:title', content: @entry.name } %meta{ property: 'og:type', content: 'article' } %meta{ property: 'og:url', content: blog_entry_path(@entry) } - if @entry.thumbnail_image.present? %meta{ property: 'og:image', content: @entry.thumbnail_image_url } %meta{ property: 'global-id', content: @entry.to_global_id.to_param } - unless @entry.meta_description.blank? %meta{ name: :description, content: @entry.meta_description } - content_for :page_aside do = render 'workarea/storefront/blogs/blog_navigation', blog: @entry.blog %article.blog-entry.view %heading.blog-entry__header - if @entry.content_blocks_for(:blog_header).present? != render_content_blocks(@entry.content_blocks_for('blog_header')) %h1.blog-entry__title %span= @entry.name %p.blog-entry__author= @entry.author %p.blog-entry__datetime = local_time(@entry.written_at, format: :long) %p.blog-entry__comment-count= link_to t('workarea.storefront.blogs.comments', count: @entry.comment_count), blog_entry_path(@entry, anchor: 'blog-entry-comments') - if @entry.tags.present? .blog-entry__tags %p.blog-entry__label= t('workarea.storefront.blogs.tags') %ul.blog-entry__tags-list - @entry.tags.each do |tag| %li.blog-entry__tags-list-item= link_to tag, blog_tagged_path(@entry.blog, tag) .blog-entry__body - if @entry.content_blocks_for(:blog_content).present? != render_content_blocks(@entry.content_blocks_for('blog_content')) - if @entry.products.present? .blog-entry__products %h2.blog-entry__products-heading= t('workarea.storefront.blogs.related_products') %ul.grid.grid--auto - @entry.products.each do |product| = render_schema_org(product_schema(product)) %li.grid__cell> .product-summary = render 'workarea/storefront/products/summary', product: product #blog-entry-comments.blog-entry__comments - if @entry.comments.present? .blog-entry__section .blog-entry__comments-header %h2.blog-entry__comments-heading= t('workarea.storefront.blogs.comments', count: @entry.comment_count) %p.blog-entry__write-comment-link= link_to t('workarea.storefront.blogs.write_comment'), '#write-comment', class: 'button button--solid' %ul.blog-entry__comment-group - @entry.comments.each do |comment| %li.blog-entry__comment %p.blog-entry__comment-item.blog-entry__comment-item--author = comment.user_info %p.blog-entry__comment-item.blog-entry__comment-item--datetime = local_time(comment.created_at, format: :long); %p.blog-entry__comment-item.blog-entry__comment-item--body = comment.body #write-comment.blog-entry__section{ data: { blog_comment_placeholder: blog_entry_comments_path(@entry) } }