We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3db67fc commit 19468fdCopy full SHA for 19468fd
apps/site/next.dynamic.mjs
@@ -208,9 +208,9 @@ const getDynamicRouter = async () => {
208
? `${siteConfig.title} — ${data.title}`
209
: siteConfig.title;
210
211
- if (data.description) {
212
- pageMetadata.description = data.description;
213
- }
+ pageMetadata.description = data.description
+ ? data.description
+ : siteConfig.description;
214
215
// Default Twitter Title for the page
216
pageMetadata.twitter.title = pageMetadata.title;
apps/site/types/frontmatter.ts
@@ -9,4 +9,5 @@ export type Frontmatter = {
9
author?: string;
10
authors?: string;
11
category?: string;
12
+ description?: string;
13
};
0 commit comments