From 39a49e45e04b7431f4178212f6b9bd723745043a Mon Sep 17 00:00:00 2001 From: pixelass Date: Thu, 9 May 2024 19:48:13 +0200 Subject: [PATCH] docs: adjust page title --- homepage/theme.config.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homepage/theme.config.jsx b/homepage/theme.config.jsx index 7b9492677..34ed328cb 100644 --- a/homepage/theme.config.jsx +++ b/homepage/theme.config.jsx @@ -1,4 +1,5 @@ import Link from "next/link"; +import { useRouter } from "next/router"; import { Logo } from "./components/logo"; @@ -18,7 +19,7 @@ const themeConfig = { @@ -31,8 +32,9 @@ const themeConfig = { primaryHue: 176, primarySaturation: 60, useNextSeoProps() { + const { asPath } = useRouter(); return { - titleTemplate: "%s – Captain", + titleTemplate: asPath === "/" ? "Captain - The AI platform" : "%s – Captain", }; }, project: {