doc: update tutorial seo page

This commit is contained in:
Valerio Ageno
2025-01-03 17:20:46 +01:00
parent dfc66cfd50
commit c3fda4a3a5
@@ -81,17 +81,14 @@ export default function IndexPage({
```diff
// src/routes/pokemons/[pokemon].tsx
import type { JSX } from 'react'
-- import { TuonoProps } from "tuono";
++ import { TuonoProps, Head } from "tuono";
import { TuonoProps } from "tuono";
import PokemonView from "../../components/PokemonView";
export default function Pokemon({ data }: TuonoProps): JSX.Element {
-- return <PokemonView pokemon={data} />;
++ return (
++ <>
++ <Head>
++ <title>Pokemon: ${data?.name}</title>
++ </Head>
++ <title>Pokemon: ${data?.name}</title>
++ <PokemonView pokemon={data} />
++ </>
++ )