mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: title opentest
This commit is contained in:
1 parent
0dd3e71353
commit
cf17b56cc7
1 file changed
+10
-4
+10
-4
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user