We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d3c8b3 commit 87d54a1Copy full SHA for 87d54a1
src/pages/samples/[slug].astro
@@ -13,9 +13,10 @@ export async function getStaticPaths() {
13
const { sample } = Astro.props;
14
const { data } = sample;
15
const { Content } = await render(sample);
16
+const ogImage = data.thumbnails.find(t => t.type === 'image')?.url;
17
---
18
-<Layout title={data.title} description={data.shortDescription}>
19
+<Layout title={data.title} description={data.shortDescription} image={ogImage}>
20
<section class="pt-16 pb-24 px-4">
21
<div class="max-w-4xl mx-auto">
22
0 commit comments