Nuxt Content markdown with Nuxt schema-org

I'm looking for any information how to get schema.org JSON+LD markup into pages written with Nuxt Content I have installed the @nuxtjs/seo module and with it the nuxt-schema-org and defined the global config in nuxt.config.ts
modules: ['@nuxt/content', '@nuxtjs/seo', '@nuxt/image'],
site: {
url: 'https://example.com',
trailingSlash: true,
name: 'An example garden',
description: "A Garden ...",
defaultLocale: 'en', // not needed if you have @nuxtjs/i18n installed
},

schemaOrg: {
identity: {
type: 'Organization',
'@id': "https://example.com/#organization",
name: 'The Best Example',
url: 'https://example.com',
logo: '/images/ExampleLogo.png'
}
},
modules: ['@nuxt/content', '@nuxtjs/seo', '@nuxt/image'],
site: {
url: 'https://example.com',
trailingSlash: true,
name: 'An example garden',
description: "A Garden ...",
defaultLocale: 'en', // not needed if you have @nuxtjs/i18n installed
},

schemaOrg: {
identity: {
type: 'Organization',
'@id': "https://example.com/#organization",
name: 'The Best Example',
url: 'https://example.com',
logo: '/images/ExampleLogo.png'
}
},
How do I add page specific schema, such as "author", "about", ..." What are the ways to connect those two? - front matter that is picked up? - do I need to add MDC components? - How do I do this? - do I need to add a script to the pages/[...slug].vue Are there any examples around I could follow?
2 Replies
harlan
harlan2mo ago
Hi, thanks for the questions. I need to improve the docs around this, if you're able to make a github issue we can track there
Dull Object Specialist
Issue created, that would be awesome. Thanks in advance. I got some private help from Ismael Garcia (https://github.com/leamsigc) So I have some way to do it, but it does seem rather involved in the light of Nuxt Content trying to simplify things.
GitHub
leamsigc - Overview
Always ask questions to feed the curiosity and learn something new on the way. El respeto al derecho ajeno es la paz. Benito Juarez Garcia. - leamsigc
Want results from more Discord servers?
Add your server