--- trunk/docs/app/layout.tsx	2024/08/30 10:10:56	625
+++ trunk/docs/app/layout.tsx	2024/09/07 09:38:45	626
@@ -1,5 +1,6 @@
 import Navbar from "@/components/Navbar/Navbar";
 import Progress from "@/components/Navigation/Progress";
+import { BASE_URL } from "@/utils/links";
 import type { Metadata, Viewport } from "next";
 import { Inter } from "next/font/google";
 import { PropsWithChildren } from "react";
@@ -9,11 +10,14 @@
 const inter = Inter({ subsets: ["latin"] });
 
 export const metadata: Metadata = {
-    metadataBase: new URL((process.env.NEXT_PUBLIC_BASE_DOMAIN?.startsWith("localhost") ? "http" : "https") + "://" + process.env.NEXT_PUBLIC_BASE_DOMAIN!),
-    title: "SudoBot Documentation",
+    metadataBase: new URL(BASE_URL),
+    title: {
+        default: "SudoBot Documentation",
+        template: "%s | SudoBot Documentation",
+    },
     description: "A guide to get you started with SudoBot!",
     alternates: {
-        canonical: "./"
+        canonical: "./",
     },
 };
 
