mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: seo ids list
This commit is contained in:
1 parent
74fefe6291
commit
1b017aad48
6 files changed
+34
-14
No files matched your search
@@ -7,7 +7,6 @@ import type { GetStaticPaths } from 'astro';
|
||||
import { AesonPlug } from '../../components/AesonPlug';
|
||||
import { HomeLocaleSwitcher } from '../../components/Home/HomeLocaleSwitcher';
|
||||
import HomeHero from '../../components/HomeHero.astro';
|
||||
import { HomePageHotTanks } from '../../components/HomePageHotTanks';
|
||||
import { Plugs } from '../../components/Plugs';
|
||||
import ToolCard from '../../components/ToolCard.astro';
|
||||
import {
|
||||
@@ -18,7 +17,7 @@ import {
|
||||
moreTool,
|
||||
performanceTool,
|
||||
sessionTool,
|
||||
tankopediaTool,
|
||||
tanksTool,
|
||||
tierListTool,
|
||||
} from '../../constants/tools';
|
||||
import { getStrings } from '../../core/i18n/getStrings';
|
||||
@@ -76,13 +75,13 @@ export const getStaticPaths = (() => {
|
||||
|
||||
<Flex p="4" justify="center" gap="4" mt="3">
|
||||
<Flex maxWidth="64rem" flexGrow="1" gap="4" direction="column">
|
||||
<ToolCard tool={tankopediaTool} />
|
||||
<ToolCard tool={tanksTool} />
|
||||
|
||||
{
|
||||
<!-- {
|
||||
(PUBLIC_ASSET_BRANCH === 'main' || MODE === 'development') && (
|
||||
<HomePageHotTanks {locale} />
|
||||
)
|
||||
}
|
||||
} -->
|
||||
|
||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||
{/* <ToolCard tool={playerStatsTool} /> */}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
import { Link } from '@radix-ui/themes';
|
||||
import { PageWrapper } from '../../../components/PageWrapper';
|
||||
import { tanksTool } from '../../../constants/tools';
|
||||
import { awaitableTanks } from '../../../core/awaitables/tanks';
|
||||
import ToolLayout from '../../../layouts/ToolLayout.astro';
|
||||
|
||||
export { getStaticPaths } from '../index.astro';
|
||||
|
||||
const tanks = await awaitableTanks;
|
||||
---
|
||||
|
||||
<ToolLayout tool={tanksTool}>
|
||||
<PageWrapper>
|
||||
{
|
||||
tanks.tanks.map((tank) => (
|
||||
<Link href={`./${tank.seo_id}`}>{tank.seo_id}</Link>
|
||||
))
|
||||
}
|
||||
</PageWrapper>
|
||||
</ToolLayout>
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { tankopediaTool } from '../../../../constants/tools';
|
||||
import { tanksTool } from '../../../../constants/tools';
|
||||
import ToolLayout from '../../../../layouts/ToolLayout.astro';
|
||||
import { Page } from './_index';
|
||||
|
||||
@@ -8,7 +8,7 @@ export { getStaticPaths } from '../../index.astro';
|
||||
const { locale } = Astro.params;
|
||||
---
|
||||
|
||||
<ToolLayout tool={tankopediaTool}>
|
||||
<ToolLayout tool={tanksTool}>
|
||||
<Page {locale} client:only="react">
|
||||
<Page {locale} slot="fallback" />
|
||||
</Page>
|
||||
|
||||
Reference in new issue
Block a user