Skip to content

Commit 543b817

Browse files
authored
Add searchbox metadata (#1115)
1 parent 8095dc0 commit 543b817

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

datafiles/templates/index.html.st

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
$hackageCssTheme()$
55
<title>Introduction | Hackage</title>
66
<link rel="canonical" href="$sbaseurl$" />
7+
<script type="application/ld+json">
8+
{
9+
"@context": "https://schema.org",
10+
"@type": "WebSite",
11+
"url": "$sbaseurl$",
12+
"potentialAction": {
13+
"@type": "SearchAction",
14+
"target": {
15+
"@type": "EntryPoint",
16+
"urlTemplate": "$sbaseurl$/packages/search?terms={search_term_string}"
17+
},
18+
"query-input": "required name=search_term_string"
19+
}
20+
}
21+
</script>
722
</head>
823

924
<body>

0 commit comments

Comments
 (0)