Skip to content

Commit 14b7c11

Browse files
authored
Merge pull request #19344 from remyleone/search_json_types
Add a search JSON-LD meta description
2 parents 51b4fa8 + 7258a8d commit 14b7c11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

layouts/partials/head.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@
5454
"@context": "https://schema.org",
5555
"@type": "Organization",
5656
"url": "https://kubernetes.io",
57-
"logo": "https://kubernetes.io/images/favicon.png"
57+
"logo": "https://kubernetes.io/images/favicon.png",
58+
{{- if not .Site.Params.deprecated }}
59+
"potentialAction": {
60+
"@type": "SearchAction",
61+
"target": {{ printf "%s%s" ("/docs/search/" | absURL) "?q={search_term_string}" }},
62+
"query-input": "required name=search_term_string"
63+
}
64+
{{ end }}
5865
}
5966
</script>
6067
<meta name="theme-color" content="#326ce5">

0 commit comments

Comments
 (0)