2024-11-28 13:35:18 -06:00
|
|
|
---
|
2025-09-13 22:53:29 -05:00
|
|
|
import { AstroSeo } from "@astrolib/seo";
|
|
|
|
|
import type { Tool } from "../constants/tools";
|
|
|
|
|
import { getStrings } from "../core/i18n/getStrings";
|
2024-11-28 13:35:18 -06:00
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
tool: Tool;
|
2025-10-22 17:52:01 -05:00
|
|
|
locale: string;
|
2024-11-28 13:35:18 -06:00
|
|
|
}
|
|
|
|
|
|
2025-10-22 17:52:01 -05:00
|
|
|
const { locale, tool } = Astro.props;
|
2025-01-07 13:20:20 -06:00
|
|
|
const strings = getStrings(locale);
|
|
|
|
|
const toolStrings =
|
2025-01-10 20:30:08 -06:00
|
|
|
strings.website.tools[
|
2025-09-13 22:53:29 -05:00
|
|
|
(tool.strings ?? tool.id) as keyof typeof strings.website.tools
|
2025-01-10 20:30:08 -06:00
|
|
|
];
|
2024-11-28 13:35:18 -06:00
|
|
|
---
|
|
|
|
|
|
2025-04-03 12:45:33 -05:00
|
|
|
<AstroSeo
|
|
|
|
|
title={toolStrings.name}
|
|
|
|
|
description={toolStrings.seo_description}
|
|
|
|
|
canonical={Astro.url.href}
|
|
|
|
|
openGraph={{
|
|
|
|
|
url: Astro.url.href,
|
2025-04-05 16:00:52 -05:00
|
|
|
images: [
|
2025-09-13 22:53:29 -05:00
|
|
|
{
|
|
|
|
|
url: `${Astro.url.origin}/assets/images/tools/${tool.id}.webp`,
|
|
|
|
|
},
|
2025-04-05 16:00:52 -05:00
|
|
|
],
|
2025-04-03 12:45:33 -05:00
|
|
|
title: toolStrings.name,
|
|
|
|
|
description: toolStrings.seo_description,
|
2025-09-13 22:53:29 -05:00
|
|
|
site_name: "BlitzKit",
|
2025-04-03 12:45:33 -05:00
|
|
|
}}
|
2025-09-13 22:53:29 -05:00
|
|
|
twitter={{ cardType: "summary_large_image" }}
|
2025-04-03 12:45:33 -05:00
|
|
|
/>
|