fix: compare tool embed

This commit is contained in:
tresabhi committed 2024-11-28 13:35:18 -06:00
1 parent a22f9ca072
commit 2dd8ffe570
3 files changed
+28 -13

No files matched your search

+3 -12
View File
@@ -1,6 +1,7 @@
---
import { imgur, ImgurSize } from '@blitzkit/core';
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
import ToolOpenGraph from '../components/ToolOpenGraph.astro';
import { type Tool } from '../constants/tools';
import BaseLayout from './BaseLayout.astro';
@@ -11,19 +12,9 @@ interface Props {
const { tool } = Astro.props;
---
<ToolOpenGraph tool={tool} />
<BaseLayout>
<title>{tool.title}</title>
<meta property="og:image" content={imgur(tool.image)} />
{
tool.pageDescription !== undefined && (
<>
<meta name="description" content={tool.pageDescription} />
<meta property="og:description" content={tool.pageDescription} />
</>
)
}
<Box
style={{
backgroundImage: `url(${imgur(tool!.image, {