Skip to content

Commit 15f2769

Browse files
authored
ktl-1204 chore: add logo into schema.org (#45)
1 parent e1ca610 commit 15f2769

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/components/Seo/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface SEOProps {
1010
}
1111

1212
import imageUrl from '../../images/preview.png';
13+
import logoUrl from '../../images/kotlin-logo.png';
1314

1415
export function SEO({title, description, image, meta = []} : SEOProps) {
1516
const {site} = useStaticQuery(graphql`
@@ -43,6 +44,12 @@ export function SEO({title, description, image, meta = []} : SEOProps) {
4344
name: title,
4445
description: metaDescription,
4546
image: absoluteImageUrl
47+
},
48+
{
49+
'@context': 'https://schema.org',
50+
'@type': 'Organization',
51+
'url': site.siteMetadata.siteUrl,
52+
'logo': site.siteMetadata.siteUrl + logoUrl
4653
}
4754
];
4855

src/images/kotlin-logo.png

12.8 KB
Loading

0 commit comments

Comments
 (0)