diff --git a/site/blog/app/(web)/posts/[slug]/opengraph-image.tsx b/site/blog/app/(web)/posts/[slug]/opengraph-image.tsx index bcac7b2..c438474 100644 --- a/site/blog/app/(web)/posts/[slug]/opengraph-image.tsx +++ b/site/blog/app/(web)/posts/[slug]/opengraph-image.tsx @@ -11,29 +11,42 @@ export const contentType = "image/png"; export default async function Image({ params }: { params: { slug: string } }) { const post = await getPostBySlug(params.slug); + // Font + // const sacramentoRegular = fetch( + // new URL("./Sacramento-Regular.ttf", import.meta.url) + // ).then((res) => res.arrayBuffer()); + return new ImageResponse( (
{/* source: @/public/images/icon.svg */} - - + + @@ -44,24 +57,47 @@ export default async function Image({ params }: { params: { slug: string } }) {
{alt}
-
+
{post.meta.title}
), - { ...size } + { + ...size, + // fonts: [ + // { + // name: "Sacramento", + // data: await sacramentoRegular, + // style: "normal", + // weight: 400, + // }, + // ], + } ); } diff --git a/site/blog/utils/seo.ts b/site/blog/utils/seo.ts index b4ba223..b8c777f 100644 --- a/site/blog/utils/seo.ts +++ b/site/blog/utils/seo.ts @@ -33,7 +33,7 @@ export default function seo({ description, title }: SeoProps): Metadata { }, twitter: { card: "summary_large_image", - // site: siteMetadata.siteTitle, + site: siteMetadata.siteTitle, creator: siteMetadata?.social?.twitter, title: title, description: metaDescription,