Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.11 KB

gatsby-plugin-next-seo.blogpostjsonld.md

File metadata and controls

42 lines (31 loc) · 1.11 KB

Home > gatsby-plugin-next-seo > BlogPostJsonLd

BlogPostJsonLd variable

A utility component which wraps the <ArticleJsonLd /> component but is classified as a BlogPosting.

Signature:

BlogPostJsonLd: FC<BlogPostJsonLdProps>

Remarks

import React from 'react';
import { BlogPostJsonLd } from 'gatsby-plugin-next-seo';

export default () => (
  <>
    <h1>Blog Post JSON-LD</h1>
    <BlogPostJsonLd
      url='https://example.com/blog'
      title='Blog headline'
      images={[
        'https://example.com/photos/1x1/photo.jpg',
        'https://example.com/photos/4x3/photo.jpg',
        'https://example.com/photos/16x9/photo.jpg',
      ]}
      datePublished='2015-02-05T08:00:00+08:00'
      dateModified='2015-02-05T09:00:00+08:00'
      authorName='Jane Blogs'
      description='This is a mighty good description of this blog.'
    />
  </>
);