mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-16 17:42:05 +02:00
Fix SEO Meta
This commit is contained in:
parent
bbfaa1dac6
commit
fa5e79dcb8
1 changed files with 42 additions and 38 deletions
|
@ -26,49 +26,53 @@ function SEO({ description, meta, title }) {
|
||||||
<Helmet
|
<Helmet
|
||||||
title={title}
|
title={title}
|
||||||
titleTemplate={`%s | ${site.siteMetadata.title}`}
|
titleTemplate={`%s | ${site.siteMetadata.title}`}
|
||||||
meta={[
|
|
||||||
{
|
|
||||||
name: `description`,
|
|
||||||
content: metaDescription,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: `og:title`,
|
|
||||||
content: title,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: `og:description`,
|
|
||||||
content: metaDescription,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
property: `og:type`,
|
|
||||||
content: `website`,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `twitter:card`,
|
|
||||||
content: `summary`,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `twitter:creator`,
|
|
||||||
content: site.siteMetadata.author,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `twitter:title`,
|
|
||||||
content: title,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `twitter:description`,
|
|
||||||
content: metaDescription,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "keywords",
|
|
||||||
content: site.siteMetadata.keywords,
|
|
||||||
},
|
|
||||||
].concat(meta)}
|
|
||||||
>
|
>
|
||||||
<meta
|
<meta
|
||||||
name="battery-savings"
|
name="battery-savings"
|
||||||
content="allow-reduced-framerate"
|
content="allow-reduced-framerate"
|
||||||
></meta>
|
></meta>
|
||||||
|
{
|
||||||
|
[
|
||||||
|
{
|
||||||
|
name: `description`,
|
||||||
|
content: metaDescription,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: `og:title`,
|
||||||
|
content: title,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: `og:description`,
|
||||||
|
content: metaDescription,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
property: `og:type`,
|
||||||
|
content: `website`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `twitter:card`,
|
||||||
|
content: `summary`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `twitter:creator`,
|
||||||
|
content: site.siteMetadata.author,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `twitter:title`,
|
||||||
|
content: title,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `twitter:description`,
|
||||||
|
content: metaDescription,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "keywords",
|
||||||
|
content: site.siteMetadata.keywords,
|
||||||
|
},
|
||||||
|
].concat(meta).map((m) => {
|
||||||
|
return <meta key={m.name} name={m.name} content={m.content}></meta>;
|
||||||
|
})
|
||||||
|
}
|
||||||
<script
|
<script
|
||||||
async
|
async
|
||||||
defer
|
defer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue