diff --git a/README.md b/README.md index 8cee54a..d316193 100644 --- a/README.md +++ b/README.md @@ -574,7 +574,7 @@ JSON-LD allows for more customized and richer display, such as in search results To discover all the different content types that JSON-LD offers, go to: https://developers.google.com/search/docs/guides/search-gallery -It is also possible to use multiple `` components in a single page. +Tips: If you want to handle multiple JSON-LDs on one page, pass an array to the `schema`. ### Using `schema-dts` @@ -784,6 +784,68 @@ This plugin uses [schema-dts](https://github.com/google/schema-dts), so it provi /> ``` +### JSON-LD Multiple Examples + +```svelte + + + +``` + ## Types The following types can be imported from `svelte-meta-tags` @@ -814,7 +876,7 @@ interface MetaTagsProps { ```ts interface JsonLdProps { output?: 'head' | 'body'; - schema?: Thing | WithContext; + schema?: Thing | WithContext | Thing[] | WithContext[]; } ```