Skip to content

Commit 8bc5f64

Browse files
Add structured data and mobile viewport for AI-friendly SEO (#367)
* Add structured data and mobile viewport for AI-friendly SEO This commit improves the documentation site's discoverability and usability for both AI crawlers and end users. Changes: - Add mobile viewport meta tag for responsive design - Add JSON-LD structured data with Organization schema - Add WebSite schema with SearchAction for site search - Include social media links (sameAs) for knowledge graph - Add contact information for better organization visibility These improvements help search engines and AI assistants better understand our site structure, content, and organization identity. * Update src/partials/head-structured-data.hbs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Address PR feedback: fix GitHub URL and add Agentic Data Plane - Change GitHub sameAs link to organization profile (redpanda-data) - Update description to include 'Agentic Data Plane' - Make WebSite schema URLs dynamic using site.url variable - Keep Organization schema URLs hardcoded (company, not docs site) * Add Agentic Data Plane to WebSite schema description --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 78fcaeb commit 8bc5f64

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

src/partials/head-meta.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
12
{{!-- Prevent old versions from being indexed by search engines --}}
23
{{#if (or (is-prerelease page) site.keys.preview)}}
34
<meta name="robots" content="noindex">
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<script type="application/ld+json">
2+
{
3+
"@context": "https://schema.org",
4+
"@graph": [
5+
{
6+
"@type": "Organization",
7+
"@id": "https://redpanda.com/#organization",
8+
"name": "Redpanda Data",
9+
"url": "https://redpanda.com",
10+
"logo": {
11+
"@type": "ImageObject",
12+
"url": "https://redpanda.com/favicon.ico",
13+
"width": 512,
14+
"height": 512
15+
},
16+
"description": "Redpanda is a streaming data platform and Agentic Data Plane for developers. Build real-time applications without the complexity of legacy platforms.",
17+
"sameAs": [
18+
"https://twitter.com/redpandadata",
19+
"https://www.linkedin.com/company/redpanda-data",
20+
"https://github.com/redpanda-data",
21+
"https://www.youtube.com/@RedpandaData",
22+
"https://bsky.app/profile/redpanda.com"
23+
],
24+
"contactPoint": {
25+
"@type": "ContactPoint",
26+
"contactType": "Customer Support",
27+
"url": "https://redpanda.com/contact"
28+
}
29+
},
30+
{
31+
"@type": "WebSite",
32+
"@id": "{{#with site.url}}{{{this}}}{{else}}https://docs.redpanda.com{{/with}}/#website",
33+
"url": "{{#with site.url}}{{{this}}}{{else}}https://docs.redpanda.com{{/with}}",
34+
"name": "Redpanda Documentation",
35+
"description": "Redpanda Documentation: Guides, API references, and resources for event streaming and Agentic Data Plane.",
36+
"publisher": {
37+
"@id": "https://redpanda.com/#organization"
38+
},
39+
"potentialAction": {
40+
"@type": "SearchAction",
41+
"target": {
42+
"@type": "EntryPoint",
43+
"urlTemplate": "{{#with site.url}}{{{this}}}{{else}}https://docs.redpanda.com{{/with}}/search/?q={search_term_string}"
44+
},
45+
"query-input": "required name=search_term_string"
46+
}
47+
}
48+
]
49+
}
50+
</script>

src/partials/head.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{> head-prelude}}
33
{{> head-title}}
44
{{> head-info}}
5+
{{> head-structured-data}}
56
<link rel="preload" href="{{{@root.uiRootPath}}}/font/Inter-Regular.ttf" as="font" type="font/ttf" crossorigin>
67
<link rel="preload" href="{{{@root.uiRootPath}}}/font/Inter-Medium.ttf" as="font" type="font/ttf" crossorigin>
78
<link rel="preload" href="{{{@root.uiRootPath}}}/font/Inter-SemiBold.ttf" as="font" type="font/ttf" crossorigin>

0 commit comments

Comments
 (0)