Skip to content

Commit 78c4bc1

Browse files
feat: add End-of-life (EOL) link under About menu (#8156)
* feat: add End-of-life (EOL) link under About menu * fix(eol): change layout from article to about to restore sidebar for End-Of-Life page * refactor(eol): update all internal links to /about/eol for consistency
1 parent 0b90e2c commit 78c4bc1

File tree

11 files changed

+20
-10
lines changed

11 files changed

+20
-10
lines changed

apps/site/components/EOL/EOLAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const EOLAlert = () => {
88
return (
99
<AlertBox level="warning">
1010
{t.rich('components.eolAlert.message', {
11-
link: text => <Link href="/eol">{text}</Link>,
11+
link: text => <Link href="/about/eol">{text}</Link>,
1212
})}
1313
</AlertBox>
1414
);

apps/site/components/withReleaseAlertBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const WithReleaseAlertBox: FC<WithReleaseAlertBoxProps> = ({ status }) => {
2121
size="small"
2222
>
2323
{t.rich('layouts.download.codeBox.unsupportedVersionWarning', {
24-
link: text => <Link href="/eol">{text}</Link>,
24+
link: text => <Link href="/about/eol">{text}</Link>,
2525
})}
2626
</AlertBox>
2727
);

apps/site/navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
"branding": {
114114
"link": "/about/branding",
115115
"label": "components.navigation.about.links.branding"
116+
},
117+
"eol": {
118+
"link": "/about/eol",
119+
"label": "components.navigation.about.links.eol"
116120
}
117121
}
118122
},

apps/site/pages/en/eol.mdx renamed to apps/site/pages/en/about/eol.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: End-Of-Life
3-
layout: article
3+
layout: about
44
description: Understand Node.js End-of-Life, what it means for security, tooling, and compliance, plus EOL version details and commercial support options.
55
---
66

apps/site/pages/en/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ layout: home
2121

2222
<Button kind="primary" className="!block dark:!hidden" href="/download">Get Node.js®</Button>
2323

24-
<Button kind="secondary" className="!block" href="/eol">
24+
<Button kind="secondary" className="!block" href="/about/eol">
2525
<span>Get security support</span>
2626
<br />
2727
<small className="!text-xs">for EOL Node.js versions</small>

apps/site/pages/fr/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ layout: home
1919

2020
<Button kind="primary" className="!block dark:!hidden" href="/download">Obtenir Node.js®</Button>
2121

22-
<Button kind="secondary" className="!block" href="/eol">
22+
<Button kind="secondary" className="!block" href="/about/eol">
2323
<span>Obtenir une aide à la sécurité</span>
2424

2525
<br />

apps/site/pages/ja/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ layout: home
1919

2020
<Button kind="primary" className="!block dark:!hidden" href="/download">Node.js®を入手</Button>
2121

22-
<Button kind="secondary" className="!block" href="/eol">
23-
<span>セキュリティーサポート</span>
22+
23+
<Button kind="secondary" className="!block" href="/about/eol">
24+
<span>セキュリティサポート</span>
2425

2526
<br />
2627

apps/site/pages/ro/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ layout: home
2121

2222
<Button kind="primary" className="!block dark:!hidden" href="/download">Obține Node.js®</Button>
2323

24-
<Button kind="secondary" className="!block" href="/eol">
24+
<Button kind="secondary" className="!block" href="/about/eol">
2525
<span>Obține asistență de securitate</span>
2626

2727
<br />

apps/site/pages/uk/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ layout: home
2020

2121
<Button kind="primary" className="!block dark:!hidden" href="/download">Отримати Node.js®</Button>
2222

23-
<Button kind="secondary" className="!block" href="/eol">
23+
<Button kind="secondary" className="!block" href="/about/eol">
2424
<span>Отримати підтримку безпеки</span>
2525

2626
<br />

apps/site/redirects.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@
288288
"source": "/:locale/about/releases",
289289
"destination": "/:locale/about/previous-releases"
290290
},
291+
{
292+
"source": "/:locale/eol",
293+
"destination": "/:locale/about/eol"
294+
},
291295
{
292296
"source": "/:locale/blog/weekly-updates/:path*",
293297
"destination": "/:locale/blog/weekly/:path*"

0 commit comments

Comments
 (0)