Closed djixadin closed 7 months ago
You can just use an Article and provide the additional type:
defineArticle({
'@type': ['LiveBlogPosting'],
...
})
You can also use a custom node https://unhead.unjs.io/schema-org/recipes/custom-nodes
The scope of supported define<Node>
composables is for Google Rich Results, however PRs are welcome
I see. The problem is that live blog posting and coverage start time arent supported and therefore wont be added to schema org.. ill take a look about custom nodes and see what i can do
I see. The problem is that live blog posting and coverage start time arent supported and therefore wont be added to schema org.. ill take a look about custom nodes and see what i can do
The nodes should support any arbitrary key, they just won't be typed
defineArticle({
'@type': ['LiveBlogPosting'],
coverageStartTime: '2022-10-20',
...
})
i tried putting coverageStartTime like that and it doesn't appear in the html when inspecting. also i dont get types
using nuxt seo v2 rc4
Working fine for me
Can you provide a reproduction?
useSchemaOrg
is not typed, only the define composables
ill try to reproduce tomorrow..
in the .nuxt/types/imports.d.ts
useSchemaOrg is of any or unknown
and it links to this file node_modules/nuxt-schema-org/dist/runtime/nuxt/imports/useSchemaOrg.d.ts
which has this code
import type { useSchemaOrg as _useSchemaOrg } from '@unhead/schema-org/vue';
type Input = Parameters<typeof _useSchemaOrg>[0];
export declare function useSchemaOrg(input: Input): any;
export {};
Describe the feature
i looked through source code and the docs but i didnt found on how to use this particular schema. is it even implemented?
Additional information