From 133aa5d0b0c2d82a9e990afbbf54ccd8bb6716b0 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 5 Jun 2023 00:32:30 +1000 Subject: [PATCH] fix page titles --- theme.config.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/theme.config.tsx b/theme.config.tsx index 9d3e1bdc..3e2c5381 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -4,13 +4,10 @@ import { useRouter } from 'next/router'; import Search from '@components/Search'; function useHead() { - const { title } = useConfig(); - return ( <> - {`${title} – Overextended`} ); } @@ -21,7 +18,7 @@ function useNextSeoProps() { const title = arr[arr.length - 1].replace(/[-_]/g, ' '); return { - titleTemplate: /[a-z]/.test(title) && /[A-Z]/.test(title) ? title : '%s', + titleTemplate: `${/[a-z]/.test(title) && /[A-Z]/.test(title) ? title : '%s'} - Overextended`, }; }