File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ type MetadataOptions = {
1515 description : string ;
1616 siteName ?: string ;
1717 image ?: string ;
18+ other ?: any ;
1819 } ;
1920} ;
2021
@@ -34,6 +35,7 @@ export function generatePageMetadata(options: MetadataOptions = {}): Metadata {
3435 siteName : options . openGraph ?. siteName ,
3536 images : options . openGraph ?. image ,
3637 } ,
38+ other : options . openGraph ?. other ,
3739 twitter : {
3840 card : 'summary_large_image' ,
3941 title : options . openGraph ?. title ,
@@ -46,6 +48,18 @@ export function generatePageMetadata(options: MetadataOptions = {}): Metadata {
4648}
4749
4850
51+ export interface JsonLdSchema {
52+ '@context' : 'https://schema.org' ;
53+ '@type' : string ;
54+ [ key : string ] : any ;
55+ }
56+
57+ export function generateJsonLd ( schema : JsonLdSchema ) : string {
58+ return JSON . stringify ( schema , null , 2 ) ;
59+ }
60+
61+
62+
4963export function cn ( ...inputs : ClassNameValue [ ] ) {
5064 return twMerge ( inputs ) ;
5165}
You can’t perform that action at this time.
0 commit comments