From ad77293e06f541923568798ea85ab5592b5d328a Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 6 Nov 2024 22:10:16 +0000 Subject: [PATCH] Fix missing description meta tag, add og:site_name in portal (#5331) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR adds a `description` field and a `siteName` property to the metadata returned by the `createMetadata` function in the `metadata.ts` file. ### Detailed summary - Added `description: obj.description` to the returned object in `createMetadata`. - Added `siteName: "thirdweb docs"` to the returned object in `createMetadata`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/portal/src/components/Document/metadata.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/portal/src/components/Document/metadata.ts b/apps/portal/src/components/Document/metadata.ts index 255e7d74a33..5f6c1780723 100644 --- a/apps/portal/src/components/Document/metadata.ts +++ b/apps/portal/src/components/Document/metadata.ts @@ -32,6 +32,7 @@ export function createMetadata(obj: { }): Metadata { return { title: obj.title, + description: obj.description, metadataBase: new URL("https://portal.thirdweb.com"), twitter: { title: obj.title, @@ -45,6 +46,7 @@ export function createMetadata(obj: { description: obj.description, locale: "en_US", type: "website", + siteName: "thirdweb docs", images: obj.image ? [ {