Skip to content

Commit a911c50

Browse files
committed
feat: add OpenSearch support with new opensearch.xml and link in layout
1 parent 799efc9 commit a911c50

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

app/layout.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ export const metadata: Metadata = {
2323
alternates: {
2424
canonical: "/",
2525
},
26-
formatDetection: {
27-
telephone: false,
28-
date: false,
29-
address: false,
30-
email: false,
31-
url: false,
32-
},
3326
};
3427

3528
export default function RootLayout({
@@ -43,6 +36,14 @@ export default function RootLayout({
4336
className={`${GeistSans.variable} ${GeistMono.variable} touch-manipulation`}
4437
suppressHydrationWarning
4538
>
39+
<head>
40+
<link
41+
rel="search"
42+
href="/opensearch.xml"
43+
type="application/opensearchdescription+xml"
44+
title="Domainstack"
45+
/>
46+
</head>
4647
<body className="min-h-svh overscroll-none font-sans tabular-nums antialiased">
4748
<Providers>
4849
{/* Solid background for light/dark modes */}

public/opensearch.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
3+
<ShortName>Domainstack</ShortName>
4+
<Description>Search Domainstack by domain name</Description>
5+
<InputEncoding>UTF-8</InputEncoding>
6+
<Image width="16" height="16" type="image/x-icon">https://domainstack.io/favicon.ico</Image>
7+
<Url type="text/html" template="https://domainstack.io/{searchTerms}"/>
8+
</OpenSearchDescription>

0 commit comments

Comments
 (0)