From fc5df328addceb3a8f95dcc3170d43a4690bf248 Mon Sep 17 00:00:00 2001 From: unnoq Date: Tue, 19 Nov 2024 20:35:08 +0700 Subject: [PATCH] chore(content): update metadata --- apps/content/app/(home)/layout.tsx | 6 ------ apps/content/app/layout.tsx | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/content/app/(home)/layout.tsx b/apps/content/app/(home)/layout.tsx index 51b8c3a9..5c837e79 100644 --- a/apps/content/app/(home)/layout.tsx +++ b/apps/content/app/(home)/layout.tsx @@ -2,12 +2,6 @@ import { baseOptions } from '@/app/layout.config' import { HomeLayout } from 'fumadocs-ui/layouts/home' import type { ReactNode } from 'react' -export const metadata = { - title: 'oRPC - End-to-end typesafe APIs builder', - description: - 'oRPC is an open-source solution for building modern, typesafe APIs. Build robust, scalable APIs and expose them to the internet with typesafe clients and full OpenAPI support.', -} - export default function Layout({ children, }: { diff --git a/apps/content/app/layout.tsx b/apps/content/app/layout.tsx index 85dba76c..217e1390 100644 --- a/apps/content/app/layout.tsx +++ b/apps/content/app/layout.tsx @@ -4,6 +4,17 @@ import 'fumadocs-twoslash/twoslash.css' import { RootProvider } from 'fumadocs-ui/provider' import { GeistMono } from 'geist/font/mono' import { GeistSans } from 'geist/font/sans' +import type { Metadata } from 'next' + +export const metadata: Metadata = { + metadataBase: new URL('https://orpc.unnoq.com'), + title: { + default: 'oRPC - End-to-end typesafe APIs builder', + template: '%s - oRPC', + }, + description: + 'oRPC is an open-source solution for building modern, typesafe APIs. Build robust, scalable APIs and expose them to the internet with typesafe clients and full OpenAPI support.', +} export default function Layout({ children }: { children: React.ReactNode }) { return (