From a16d23dcde76874fab4b6bdb45067fd01b88cdc1 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 19 Jan 2022 15:50:23 +0100 Subject: chore: add opengraph and twitter meta --- src/pages/blog/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/pages/blog') diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index bb16d37..3b3f2c2 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -62,8 +62,11 @@ const Blog: NextPageWithLayout = ({ fallback }) => { return ; }; + const title = t`Blog`; + const pageUrl = `${config.url}${router.asPath}`; + const webpageSchema: WebPage = { - '@id': `${config.url}${router.asPath}`, + '@id': `${pageUrl}`, '@type': 'WebPage', breadcrumb: { '@id': `${config.url}/#breadcrumb` }, name: seo.blog.title, @@ -84,7 +87,7 @@ const Blog: NextPageWithLayout = ({ fallback }) => { editor: { '@id': `${config.url}/#branding` }, inLanguage: config.locales.defaultLocale, license: 'https://creativecommons.org/licenses/by-sa/4.0/deed.fr', - mainEntityOfPage: { '@id': `${config.url}${router.asPath}` }, + mainEntityOfPage: { '@id': `${pageUrl}` }, }; const schemaJsonLd: Graph = { @@ -97,6 +100,10 @@ const Blog: NextPageWithLayout = ({ fallback }) => { {seo.blog.title} + + + +