From 42d82cf3d38ee8ac2b3da88d67858c9b06a11d44 Mon Sep 17 00:00:00 2001 From: SuperSuperDev Date: Tue, 12 Oct 2021 14:31:17 +0700 Subject: [PATCH] feat: change seo to each page title --- src/components/Seo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index e73bfc7..88f46bd 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -13,7 +13,6 @@ const defaultMeta = { type: 'website', robots: 'follow, index', }; -defaultMeta.image = openGraph(defaultMeta.title, defaultMeta.description); type SeoProps = { date?: string; @@ -29,6 +28,7 @@ export default function Seo(props: SeoProps) { meta['title'] = props.templateTitle ? `${props.templateTitle} | ${meta.site_name}` : meta.title; + meta.image = openGraph(meta.title, meta.description); return (