Sha256: 2a883e0fcb6ecb961a278796e856fecab72a4801336c1f03e60399404c419217

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "<%= @post.title %>",
  "image": "<%= request.base_url + @post.picture.try(:url).to_s %>",
  "author": "<%= render_meta_page_title %>",
  "publisher": {
    "@type": "Organization",
    "name": "<%= render_meta_page_title %>",
    "logo": {
      "@type": "ImageObject",
      "url": "<%= asset_url(:logo) %>"
    }
  },
  "url": "<%= post_url(@post) %>",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "<%= post_url(@post) %>"
  },
  "datePublished": "<%= @post.published_at.strftime("%Y-%m-%d") %>",
  "dateModified": "<%= @post.updated_at.strftime("%Y-%m-%d") %>",
  "description": "<%= @post.description %>",
  "articleBody": "<%= strip_tags @post.content %>"
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/shared/json_microdata/_blog.json.erb