Schema.org
Guides
Default Schema.org
The default Schema.org setup for Nuxt Schema.org.
By default, a Nuxt plugin is registered in your app that will register the root nodes for a
WebSite
and WebPage
for you.
These are configured using Nuxt Site Config,
Configuring Defaults
If you'd like to change any of the data on the WebPage
or WebSite
nodes, you can do so by using useSchemaOrg
in your app.
This will merge in your configuration with the default configuration.
app.vue
<script lang="ts" setup>
useSchemaOrg([
defineWebPage({
name: 'My Page'
}),
defineWebSite({
name: 'My Site'
})
])
</script>
Opt-out
If you don't want to use the default setup, you can opt-out by setting defaults: false
in your nuxt.config
:
nuxt.config.ts
export default defineNuxtConfig({
schemaOrg: {
defaults: false
}
})
Configuring Identity
Please see the Setup Identity guide for more information on configuring your identity.