Skip to content

Commit f26a5df

Browse files
committed
Support opensearch, close #5
1 parent ad1ce3c commit f26a5df

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Diff for: src/app.html

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<meta name="twitter:card" content="summary_large_image">
2323
<meta property="og:image" content="https://query.rs/og.png">
2424
<meta name="twitter:image" content="https://query.rs/og.png">
25+
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Query.rs" />
2526
<link rel='stylesheet' href='%sveltekit.assets%/css/balloon.min.css'>
2627
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet">
2728
<style>

Diff for: static/assets/logo64.png

1.6 KB
Loading

Diff for: static/opensearch.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
2+
<ShortName>Query.rs</ShortName>
3+
<Description>A search engine for Rust.</Description>
4+
<Image width="16" height="16" type="image/x-icon">https://query.rs/favicon.ico</Image>
5+
<Url type="text/html" method="get" template="https://query.rs?q={searchTerms}"/>
6+
</OpenSearchDescription>

0 commit comments

Comments
 (0)