Closed slamer59 closed 1 year ago
I try this approach if someone is interested in NotionPage.tsx and using next-seo
import { getBlockTitle, getPageProperty } from "notion-utils"
...
export const NotionPage: FC<PageProps> = ({
const FAQPage = getPageProperty<string>("FAQPage", block, recordMap)
...
return
...
{FAQPage && <FAQPageJsonLd {...JSON.parse(FAQPage)} />}
...
With this you just need to add a property named FAQPage
{
"mainEntity": [
{
"questionName": "How long is the delivery time?",
"acceptedAnswerText": "3-5 business days."
},
{
"questionName": "Where can I find information about product recalls?",
"acceptedAnswerText": "Read more on under information."
}
]
}```
``I would like to know how we could integrate json schema for a Page.
One use next-seo to generate SEO schemas.
https://github.com/garmeeh/next-seo
It is already done for "Default Schema" but let's say I want to add FAQ.
Ideas:
I don't have any idea which one is better / if it is usefull to someone ?
Exemple of script to be added :