mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: page descriptions
This commit is contained in:
1 parent
7093662130
commit
57dced109a
2 files changed
+15
-13
No files matched your search
@@ -19,7 +19,14 @@ export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{tool && <title>{tool.title}</title>}
|
{tool && (
|
||||||
|
<>
|
||||||
|
<title>{tool.title}</title>
|
||||||
|
{tool.pageDescription !== undefined && (
|
||||||
|
<meta name="description" content={tool.pageDescription} />
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{pathSplit.length === 3 && (
|
{pathSplit.length === 3 && (
|
||||||
<div
|
<div
|
||||||
|
|||||||
+7
-12
@@ -4,6 +4,7 @@ interface Tool {
|
|||||||
description: string;
|
description: string;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
href?: string;
|
href?: string;
|
||||||
|
pageDescription?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TOOLS: Tool[] = [
|
export const TOOLS: Tool[] = [
|
||||||
@@ -11,16 +12,22 @@ export const TOOLS: Tool[] = [
|
|||||||
id: 'session',
|
id: 'session',
|
||||||
title: 'Session tracker',
|
title: 'Session tracker',
|
||||||
description: 'Live session performance tracker',
|
description: 'Live session performance tracker',
|
||||||
|
pageDescription:
|
||||||
|
'Track your stats in real time as you play World of Tanks Blitz',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'tankopedia',
|
id: 'tankopedia',
|
||||||
title: 'Tankopedia',
|
title: 'Tankopedia',
|
||||||
description: 'Blitz tank encyclopedia',
|
description: 'Blitz tank encyclopedia',
|
||||||
|
pageDescription:
|
||||||
|
'Statistics, armor, and more for all tanks in World of Tanks Blitz',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'rating',
|
id: 'rating',
|
||||||
title: 'Rating leaderboard',
|
title: 'Rating leaderboard',
|
||||||
description: 'Full rating gamemode leaderboard',
|
description: 'Full rating gamemode leaderboard',
|
||||||
|
pageDescription:
|
||||||
|
'Live and archived full rating leaderboard for World of Tanks Blitz',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'discord',
|
id: 'discord',
|
||||||
@@ -28,18 +35,6 @@ export const TOOLS: Tool[] = [
|
|||||||
description: 'Stats and tools right in Discord',
|
description: 'Stats and tools right in Discord',
|
||||||
href: 'https://discord.com/application-directory/1097673957865443370',
|
href: 'https://discord.com/application-directory/1097673957865443370',
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// id: 'inactive',
|
|
||||||
// title: 'Inactivity tracker',
|
|
||||||
// description: 'Find inactive members of a clan',
|
|
||||||
// disabled: true,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// id: 'profile',
|
|
||||||
// title: 'Player profile',
|
|
||||||
// description: "A player's basic non-statistical info",
|
|
||||||
// disabled: true,
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
id: 'more',
|
id: 'more',
|
||||||
title: 'More coming soon',
|
title: 'More coming soon',
|
||||||
|
|||||||
Reference in new issue
Block a user