Index of every page on this site: llms.txt

Introduction

Type: function useSchemaOrg(input: SchemaOrgInput): ActiveHeadEntry<UseHeadInput> | undefined

Insert Schema.org structured data into your page.

In development mode your Schema.org will be reactive, but once you deploy you'll notice that it's static.

This is because the composable only works in a server-side context by default outside of development for performance reasons. You'll need to enable the reactive module configuration if you'd like to use this client-side.

Usage

import { useSchemaOrg } from '#imports'

useSchemaOrg([
  defineWebPage({
    name: 'Hello World'
  })
])
Was this page helpful?