Skip to content

Commit 45cf465

Browse files
authored
feat: add custom description metadata generation (nodejs#8159)
* feat: add custom description metadata generation * refactor: review
1 parent cafae6f commit 45cf465

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

apps/site/next.dynamic.mjs

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

211+
pageMetadata.description = data.description
212+
? data.description
213+
: siteConfig.description;
214+
211215
// Default Twitter Title for the page
212216
pageMetadata.twitter.title = pageMetadata.title;
213217

apps/site/pages/en/eol.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: End-Of-Life
33
layout: article
4+
description: Understand Node.js End-of-Life, what it means for security, tooling, and compliance, plus EOL version details and commercial support options.
45
---
56

67
# End-Of-Life (EOL)

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)