Skip to content

Commit 2f1a16c

Browse files
authored
feat: add Organization schema markup for enhanced SEO and structured data (#815)
* feat: add Organization schema markup to HTML file for improved SEO and brand visibility Signed-off-by: Peace Sandy <[email protected]> * refactor: move orgSchema to module scope for better performance Signed-off-by: Peace Sandy <[email protected]> --------- Signed-off-by: Peace Sandy <[email protected]>
1 parent 18f6976 commit 2f1a16c

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

src/html.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@ const fontsBasePath = '/fonts';
66

77
const fontsPaths = ['/inter-regular.woff2', '/inter-bold.woff2'];
88

9+
const orgSchema = {
10+
'@context': 'https://schema.org',
11+
'@type': 'Organization',
12+
name: 'Cilium',
13+
url: 'https://cilium.io',
14+
logo: 'https://cilium.io/logo.svg',
15+
description:
16+
'Cilium is an open source, cloud native solution for providing, securing, and observing network connectivity between workloads, fueled by the revolutionary Kernel technology eBPF',
17+
foundingDate: '2015-12',
18+
sameAs: [
19+
'https://github.com/cilium',
20+
'https://twitter.com/ciliumproject',
21+
'https://www.linkedin.com/company/cilium',
22+
'https://slack.cilium.io',
23+
'https://www.youtube.com/channel/UCJFUxkVQTBJh3LD1wYBWvuQ',
24+
],
25+
memberOf: {
26+
'@type': 'Organization',
27+
name: 'Cloud Native Computing Foundation',
28+
url: 'https://www.cncf.io',
29+
},
30+
};
31+
932
export default function HTML(props) {
1033
return (
1134
<html {...props.htmlAttributes} lang="en">
@@ -27,6 +50,10 @@ export default function HTML(props) {
2750
/>
2851
))}
2952
{props.headComponents}
53+
<script
54+
type="application/ld+json"
55+
dangerouslySetInnerHTML={{ __html: JSON.stringify(orgSchema) }}
56+
/>
3057
</head>
3158
<body {...props.bodyAttributes}>
3259
{props.preBodyComponents}
@@ -44,4 +71,4 @@ HTML.propTypes = {
4471
preBodyComponents: PropTypes.array,
4572
body: PropTypes.string,
4673
postBodyComponents: PropTypes.array,
47-
};
74+
};

static/logo.svg

Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)