From 95dbef219a9dc0d2ad769980f9d9f83a9885b0ba Mon Sep 17 00:00:00 2001 From: Cypro Freelance <110410268+Proxyy587@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:38:03 +0530 Subject: [PATCH] page title #2 --- app/(root)/changelogs/[slug]/page.tsx | 3 +++ app/(root)/changelogs/layout.tsx | 37 +++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 app/(root)/changelogs/layout.tsx diff --git a/app/(root)/changelogs/[slug]/page.tsx b/app/(root)/changelogs/[slug]/page.tsx index f0bd0e6..943236d 100644 --- a/app/(root)/changelogs/[slug]/page.tsx +++ b/app/(root)/changelogs/[slug]/page.tsx @@ -77,6 +77,9 @@ const Page = ({ params }: { params: { slug: string } }) => { return ( <> + + {page.title} Changelog - SVRJS +

{page.title} Change Log diff --git a/app/(root)/changelogs/layout.tsx b/app/(root)/changelogs/layout.tsx new file mode 100644 index 0000000..c93f694 --- /dev/null +++ b/app/(root)/changelogs/layout.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; + +// baseURL [ENV] +export const metadata: Metadata = { + title: "ChangeLogs - SVRJS", + description: + "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", + openGraph: { + title: "SVRJS - A Web Server running on Node.js", + description: + "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", + url: "https://svrjs.org", + type: "website", + images: [ + { + url: "https://svrjs.vercel.app/metadata/svrjs-cover.png", + width: 800, + height: 600, + alt: "SVRJS - A Web Server running on Node.js", + }, + ], + }, + twitter: { + card: "summary_large_image", + site: "@SVR_JS", + title: "SVRJS - A Web Server running on Node.js", + description: + "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", + images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"], + creator: "@SVR_JS", + }, +}; +const ContactLayout = ({ children }: { children: React.ReactNode }) => { + return
{children}
; +}; + +export default ContactLayout;