feat: title opentest

This commit is contained in:
TrèsAbhi committed 2024-08-28 10:03:43 -05:00
1 parent 0dd3e71353
commit cf17b56cc7
1 file changed
+10 -4
+10 -4
View File
@@ -11,6 +11,7 @@ import Navbar from '../components/Navbar';
import { Party3 } from '../components/Party3'; import { Party3 } from '../components/Party3';
import * as App from '../stores/app'; import * as App from '../stores/app';
import { Checks } from './components/Checks'; import { Checks } from './components/Checks';
import { BRANCH_NAMES } from './components/Hero/constants';
import { PageLoader } from './components/PageLoader'; import { PageLoader } from './components/PageLoader';
import './layout.css'; import './layout.css';
@@ -28,11 +29,11 @@ const robotoFlex = Roboto_Flex({
export default function RootLayout({ children }: RootLayoutProps) { export default function RootLayout({ children }: RootLayoutProps) {
const pathname = usePathname(); const pathname = usePathname();
// const hideNav =
// pathname.startsWith('/tools/embed/host') ||
// pathname.startsWith('/tools/embed/customize');
const hideNav = false; const hideNav = false;
const isRoot = pathname === '/'; const isRoot = pathname === '/';
const isBranchNamed =
process.env.NEXT_PUBLIC_ASSET_BRANCH &&
BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH];
return ( return (
<App.Provider> <App.Provider>
@@ -40,7 +41,12 @@ export default function RootLayout({ children }: RootLayoutProps) {
<head> <head>
{isRoot && ( {isRoot && (
<> <>
<title>BlitzKit</title> <title>
BlitzKit
{isBranchNamed
? ` ${BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}`
: ''}
</title>
<meta <meta
name="description" name="description"
content="🎉 Tools for everything World of Tanks Blitz" content="🎉 Tools for everything World of Tanks Blitz"