mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 17:56:51 +02:00
Add SEO meta to scambox articles
This commit is contained in:
parent
a743342bd1
commit
49913942cb
2 changed files with 43 additions and 1 deletions
|
@ -3,7 +3,7 @@ title: Harry Potter and the Toaster-Investment
|
|||
url: harry-potter-and-the-toaster
|
||||
platform: telegram
|
||||
tags: [crypto]
|
||||
published: 2021-11-05
|
||||
published: 2021-11-05 22:00:00
|
||||
---
|
||||
|
||||
I've recently been contacted by Hermine on Telegram with a big business opportunity,
|
||||
|
|
|
@ -17,6 +17,47 @@ const ScamBoxPost = ({ data }) => {
|
|||
<Layout
|
||||
title={`${data.mdx.frontmatter.title} | ${t("scambox")}`}
|
||||
description={data.mdx.excerpt}
|
||||
seoAdditional={
|
||||
<script type="application/ld+json">
|
||||
{JSON.stringify({
|
||||
"@context": "https://schema.org",
|
||||
"@type": "NewsArticle",
|
||||
headline: data.mdx.frontmatter.title,
|
||||
/*"image": [
|
||||
"https://example.com/photos/1x1/photo.jpg",
|
||||
"https://example.com/photos/4x3/photo.jpg",
|
||||
"https://example.com/photos/16x9/photo.jpg"
|
||||
],*/
|
||||
datePublished: data.mdx.publishedIso,
|
||||
dateModified: data.mdx.publishedIso,
|
||||
author: [
|
||||
{
|
||||
"@type": "Person",
|
||||
name: "Kevin Kandlbinder",
|
||||
url: "https://kevink.dev",
|
||||
},
|
||||
],
|
||||
})}
|
||||
</script>
|
||||
}
|
||||
meta={[
|
||||
{
|
||||
name: "og:type",
|
||||
content: "article",
|
||||
},
|
||||
{
|
||||
name: "article:published_time",
|
||||
content: data.mdx.publishedIso,
|
||||
},
|
||||
{
|
||||
name: "article:section",
|
||||
content: "Scambox",
|
||||
},
|
||||
{
|
||||
name: "keywords",
|
||||
content: data.mdx.frontmatter.tags.join(", "),
|
||||
},
|
||||
]}
|
||||
>
|
||||
<section className={styles.scamboxSection}>
|
||||
<article>
|
||||
|
@ -72,6 +113,7 @@ export const query = graphql`
|
|||
tags
|
||||
title
|
||||
published(formatString: "DD.MM.YYYY")
|
||||
publishedIso: published(formatString: "")
|
||||
}
|
||||
}
|
||||
locales: allLocale(filter: { language: { eq: $language } }) {
|
||||
|
|
Loading…
Add table
Reference in a new issue