Skip to content

Commit 8b0d2d7

Browse files
committed
Add structured data for the project using schema.org
1 parent 3f5abc3 commit 8b0d2d7

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

app/layout.tsx

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '@/app/global.css';
22
import { RootProvider } from 'fumadocs-ui/provider/next';
33
import { Inter } from 'next/font/google';
44
import SearchDialog from '@/components/search';
5-
import { FAQPage, WithContext } from 'schema-dts';
5+
import { FAQPage, Project, WithContext } from 'schema-dts';
66

77
const inter = Inter({
88
subsets: ['latin'],
@@ -39,6 +39,35 @@ const jsonLd: WithContext<FAQPage> = {
3939
]
4040
};
4141

42+
const jsonLdProject: WithContext<Project> = {
43+
"@context": "https://schema.org",
44+
"@type": "Project",
45+
"name": "Riven",
46+
"brand": "Riven Media",
47+
"url": "https://riven.tv",
48+
"description": "Riven is the ultimate media management solution that helps you find, organize, stream, and enjoy your media effortlessly with debrid services.",
49+
"sameAs": [
50+
"https://github.com/rivenmedia",
51+
"https://discord.riven.tv"
52+
],
53+
"foundingDate": "2023-12-03",
54+
"contactPoint": [
55+
{
56+
"@type": "ContactPoint",
57+
"email": "contact@riven.tv",
58+
"contactType": "customer support",
59+
"url": "mailto:contact@riven.tv",
60+
"name": "Email Support"
61+
},
62+
{
63+
"@type": "ContactPoint",
64+
"contactType": "customer support",
65+
"url": "https://discord.riven.tv",
66+
"name": "Discord Server"
67+
}
68+
]
69+
};
70+
4271
export default function Layout({ children }: LayoutProps<'/'>) {
4372
return (
4473
<html lang="en" className={inter.className} suppressHydrationWarning>
@@ -49,6 +78,12 @@ export default function Layout({ children }: LayoutProps<'/'>) {
4978
__html: JSON.stringify(jsonLd).replace(/</g, '\\u003c'),
5079
}}
5180
/>
81+
<script
82+
type="application/ld+json"
83+
dangerouslySetInnerHTML={{
84+
__html: JSON.stringify(jsonLdProject).replace(/</g, '\\u003c'),
85+
}}
86+
/>
5287
</head>
5388

5489
<body className="flex flex-col min-h-screen">

0 commit comments

Comments
 (0)