Setup Identity
Introduction
By default, a Nuxt plugin is registered in your app that will register the root nodes for a
These are configured using Nuxt Site Config,
The only configuration you may need to provide is the identity of your site.
Selecting An Identity
Selecting an identity makes sure the Default Schema.org is correctly linked to the author of the site.
There are two types of identities you can use: Organisation and Person`.
If the choice isn't clear, you can use the
Setting Identity
The simplest way to set up your identity is to set it in your
export default defineNuxtConfig({
schemaOrg: {
identity: 'Organization'
}
})
export default defineNuxtConfig({
schemaOrg: {
identity: 'Person'
}
})
Providing Extra Identity Data
It's recommended to provide more information about your identity, such as the name, URL, logo and social media links.
// example for nuxt.com
export default defineNuxtConfig({
schemaOrg: {
identity: {
type: 'Organization',
name: 'NuxtJS',
logo: '/logo.png', // will resolve to canonical URL + /logo.png
sameAs: [
'https://x.com/nuxt_js',
'https://www.linkedin.com/showcase/nuxt-framework/',
'https://github.com/nuxt'
]
}
}
})
// example for harlanzw.com
export default defineNuxtConfig({
schemaOrg: {
identity: {
type: 'Person',
name: 'Harlan Wilton',
image: '/profile.jpg',
sameAs: [
'https://x.com/harlan_zw',
'https://github.com/harlan-zw',
'https://harlanzw.com'
]
}
}
})