diff --git a/app/(root)/blog/[slug]/page.tsx b/app/(root)/blog/[slug]/page.tsx index c703829..fc4fe00 100644 --- a/app/(root)/blog/[slug]/page.tsx +++ b/app/(root)/blog/[slug]/page.tsx @@ -51,8 +51,13 @@ export async function generateMetadata({ if (!data) { return { - title: "Not Found", - description: "Blog post not found" + title: "404 Not Found - SVR.JS", + openGraph: { + title: "404 Not Found - SVR.JS" + }, + twitter: { + title: "404 Not Found - SVR.JS" + } }; } diff --git a/app/(root)/changelog/[slug]/layout.tsx b/app/(root)/changelog/[slug]/layout.tsx index 87babe0..469349c 100644 --- a/app/(root)/changelog/[slug]/layout.tsx +++ b/app/(root)/changelog/[slug]/layout.tsx @@ -32,6 +32,18 @@ export async function generateMetadata({ } } catch (err) {} + if (notFound) { + return { + title: "404 Not Found - SVR.JS", + openGraph: { + title: "404 Not Found - SVR.JS" + }, + twitter: { + title: "404 Not Found - SVR.JS" + } + }; + } + return { title: `${page.title} change log - SVR.JS`, description: `Keep track of the latest updates and improvements for ${page.title} with our comprehensive change log. Discover new features, bug fixes, and enhancements for each release of this SVR.JS mod.`, diff --git a/app/not-found.tsx b/app/not-found.tsx index 2f0ccf2..8bab2e0 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -1,7 +1,18 @@ +import type { Metadata } from "next"; import Footer from "@/components/shared/Footer"; import Navbar from "@/components/shared/Navbar"; import Link from "next/link"; +export const metadata: Metadata = { + title: "404 Not Found - SVR.JS", + openGraph: { + title: "404 Not Found - SVR.JS" + }, + twitter: { + title: "404 Not Found - SVR.JS" + } +}; + const NotFound = () => { return ( <>