Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 986 Bytes

gatsby-plugin-next-seo.faqjsonld.md

File metadata and controls

42 lines (28 loc) · 986 Bytes

Home > gatsby-plugin-next-seo > FAQJsonLd

FAQJsonLd variable

A Frequently Asked Question (FAQ) page contains a list of questions and answers pertaining to a particular topic.

Signature:

FAQJsonLd: FC<FAQJsonLdProps>

Remarks

Properly marked up FAQ pages may be eligible to have a rich result on Search and voice assistants.

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

export default () => (
  <>
    <FAQJsonLd mainEntity={[{ question: 'What?', answer: 'Stand' }, { question:
      'How?', answer: 'Effort' }, { question: 'Why?', answer: 'Peace' },
      ]}
    />

    <h1>What?</h1>
    <p>Stand</p>

    <h1>How?</h1>
    <p>Effort</p>

    <h1>Why?</h1>
    <p>Peace</p>
  </>
);