mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: compare tool embed
This commit is contained in:
1 parent
a22f9ca072
commit
2dd8ffe570
3 files changed
+28
-13
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
import { imgur } from '@blitzkit/core';
|
||||||
|
import { type Tool } from '../constants/tools';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
tool: Tool;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { tool } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<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} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
import { imgur, ImgurSize } from '@blitzkit/core';
|
import { imgur, ImgurSize } from '@blitzkit/core';
|
||||||
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
|
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
|
import ToolOpenGraph from '../components/ToolOpenGraph.astro';
|
||||||
import { type Tool } from '../constants/tools';
|
import { type Tool } from '../constants/tools';
|
||||||
import BaseLayout from './BaseLayout.astro';
|
import BaseLayout from './BaseLayout.astro';
|
||||||
|
|
||||||
@@ -11,19 +12,9 @@ interface Props {
|
|||||||
const { tool } = Astro.props;
|
const { tool } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<ToolOpenGraph tool={tool} />
|
||||||
|
|
||||||
<BaseLayout>
|
<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
|
<Box
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${imgur(tool!.image, {
|
backgroundImage: `url(${imgur(tool!.image, {
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
import ToolOpenGraph from '../../../components/ToolOpenGraph.astro';
|
||||||
|
import { compareTool } from '../../../constants/tools';
|
||||||
import BaseLayout from '../../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../../layouts/BaseLayout.astro';
|
||||||
import { Page } from './_index';
|
import { Page } from './_index';
|
||||||
---
|
---
|
||||||
|
|
||||||
<title>Compare</title>
|
<ToolOpenGraph tool={compareTool} />
|
||||||
|
|
||||||
<BaseLayout noFooter>
|
<BaseLayout noFooter>
|
||||||
<Page client:load />
|
<Page client:load />
|
||||||
|
|||||||
Reference in new issue
Block a user