mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: tankopedia title
This commit is contained in:
1 parent
25fe926cba
commit
afb730924c
1 file changed
+15
-1
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import { fetchTankDefinitions } from '@blitzkit/core';
|
||||
import { fetchTankDefinitions, TIER_ROMAN_NUMERALS } from '@blitzkit/core';
|
||||
import strings from '@blitzkit/core/lang/en-US.json';
|
||||
import type { GetStaticPaths } from 'astro';
|
||||
import ToolLayout from '../../../../layouts/ToolLayout.astro';
|
||||
import { Page } from './_index';
|
||||
@@ -13,8 +14,21 @@ export const getStaticPaths = (async () => {
|
||||
}) satisfies GetStaticPaths;
|
||||
|
||||
const { id } = Astro.params;
|
||||
|
||||
const tankDefinitions = await fetchTankDefinitions();
|
||||
const tank = tankDefinitions.tanks[id];
|
||||
---
|
||||
|
||||
<title>
|
||||
{tank.name} - Tier {TIER_ROMAN_NUMERALS[tank.tier]}
|
||||
{
|
||||
strings.common.nations_adjectives[
|
||||
tank.nation as keyof typeof strings.common.nations_adjectives
|
||||
]
|
||||
}
|
||||
{strings.common.tank_class_short[tank.class]}
|
||||
</title>
|
||||
|
||||
<ToolLayout>
|
||||
<Page id={id} client:load />
|
||||
</ToolLayout>
|
||||
Reference in new issue
Block a user