Give some TLC the meta tags
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import { Helmet } from 'react-helmet'
|
import { Helmet } from 'react-helmet'
|
||||||
|
|
||||||
const Seo = ({
|
const Seo = ({
|
||||||
title,
|
title = "CadHub",
|
||||||
description,
|
description = "Edit this part of CadHub",
|
||||||
lang,
|
lang = 'en-US',
|
||||||
socialImageUrl,
|
socialImageUrl,
|
||||||
}: {
|
}: {
|
||||||
title: string
|
title: string
|
||||||
@@ -20,12 +20,25 @@ const Seo = ({
|
|||||||
title={title}
|
title={title}
|
||||||
titleTemplate={`Cadhub - ${title}`}
|
titleTemplate={`Cadhub - ${title}`}
|
||||||
>
|
>
|
||||||
<meta property="og:locale" content={lang} />
|
<title>{title || 'cadhub'}</title>
|
||||||
|
<meta name="description" content={description} />
|
||||||
|
|
||||||
|
{/* Facebook Meta Tags */}
|
||||||
|
<meta property="og:url" content={location.href} />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content={title} />
|
<meta property="og:title" content={title} />
|
||||||
<meta property="og:description" content={description} />
|
<meta property="og:description" content={description} />
|
||||||
<meta name="description" content={description} />
|
|
||||||
<meta property="og:image" content={socialImageUrl} />
|
<meta property="og:image" content={socialImageUrl} />
|
||||||
<title>Cadhub - {title}</title>
|
|
||||||
|
{/* Twitter Meta Tags */}
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta property="twitter:domain" content="cadhub.xyz" />
|
||||||
|
<meta property="twitter:url" content={location.href} />
|
||||||
|
<meta name="twitter:title" content={title} />
|
||||||
|
<meta name="twitter:description" content={description} />
|
||||||
|
<meta name="twitter:image" content={socialImageUrl} />
|
||||||
|
|
||||||
|
<meta property="og:locale" content={lang} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
<meta name="keywords" content="cadhub, app, application, web application, cad, code, code-cad, cad-modeling, community, website, cascade studio, openscad" />
|
<meta name="keywords" content="cadhub, app, application, web application, cad, code, code-cad, cad-modeling, community, website, cascade studio, openscad" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta name="robots" content="index, follow" />
|
<meta name="robots" content="index, follow" />
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title>CadHub</title>
|
||||||
|
<meta property="og:description" content="A community hub for CodeCAD parts, OpenSCAD, CadQuery and more" />
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta property="twitter:domain" content="cadhub.xyz" />
|
||||||
|
<meta property="og:locale" content={lang} />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="redwood-app">
|
<div id="redwood-app">
|
||||||
|
|||||||
Reference in New Issue
Block a user