Skip to content

Commit ad77293

Browse files
committed
Fix missing description meta tag, add og:site_name in portal (#5331)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent f5f5ae6 commit ad77293

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/portal/src/components/Document/metadata.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function createMetadata(obj: {
3232
}): Metadata {
3333
return {
3434
title: obj.title,
35+
description: obj.description,
3536
metadataBase: new URL("https://portal.thirdweb.com"),
3637
twitter: {
3738
title: obj.title,
@@ -45,6 +46,7 @@ export function createMetadata(obj: {
4546
description: obj.description,
4647
locale: "en_US",
4748
type: "website",
49+
siteName: "thirdweb docs",
4850
images: obj.image
4951
? [
5052
{

0 commit comments

Comments
 (0)