Skip to content

Commit 19468fd

Browse files
committed
refactor: review
1 parent 3db67fc commit 19468fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/site/next.dynamic.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ const getDynamicRouter = async () => {
208208
? `${siteConfig.title}${data.title}`
209209
: siteConfig.title;
210210

211-
if (data.description) {
212-
pageMetadata.description = data.description;
213-
}
211+
pageMetadata.description = data.description
212+
? data.description
213+
: siteConfig.description;
214214

215215
// Default Twitter Title for the page
216216
pageMetadata.twitter.title = pageMetadata.title;

apps/site/types/frontmatter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export type Frontmatter = {
99
author?: string;
1010
authors?: string;
1111
category?: string;
12+
description?: string;
1213
};

0 commit comments

Comments
 (0)