Home > gatsby-plugin-next-seo > NewsArticleJsonLd
A utility component which wraps the <ArticleJsonLd />
component but is classified as a NewsArticle
.
Signature:
NewsArticleJsonLd: FC<NewsArticleJsonLdProps>
import React from 'react';
import { NewsArticleJsonLd } from 'gatsby-plugin-next-seo';
export default () => (
<>
<h1>News Article JSON-LD</h1>
<NewsArticleJsonLd
url='https://example.com/article'
title='Article headline'
images={[
'https://example.com/photos/1x1/photo.jpg',
'https://example.com/photos/4x3/photo.jpg',
'https://example.com/photos/16x9/photo.jpg',
]}
section='politic'
keywords='prayuth,taksin'
datePublished='2015-02-05T08:00:00+08:00'
dateModified='2015-02-05T09:00:00+08:00'
authorName='Jane Blogs'
publisherName='Ifiok Jr.'
publisherLogo='https://www.example.com/photos/logo.jpg'
description='This is a mighty good description of this article.'
body='This is all text for this news article'
/>
</>
);