add netlify builder to capture social images
plus also added an invalidator that should invalidate the image each month
This commit is contained in:
24
app/web/src/components/Seo/Seo.tsx
Normal file
24
app/web/src/components/Seo/Seo.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Helmet } from 'react-helmet'
|
||||
|
||||
const Seo = ({ title, description, lang, socialImageUrl}: { title: string; description: string; lang: string; socialImageUrl?: string}) => {
|
||||
return (
|
||||
<>
|
||||
<Helmet
|
||||
htmlAttributes={{
|
||||
lang,
|
||||
}}
|
||||
title={title}
|
||||
titleTemplate={`Cadhub - ${title}`}
|
||||
>
|
||||
<meta property="og:locale" content={lang} />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta name="description" content={description} />
|
||||
<meta property="og:image" content={socialImageUrl} />
|
||||
<title>Cadhub - {title}</title>
|
||||
</Helmet>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Seo
|
||||
Reference in New Issue
Block a user