Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
as="style"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
/>
<link
rel="search"
type="application/opensearchdescription+xml"
title="Unduck"
href="/opensearch.xml"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
Expand Down
13 changes: 13 additions & 0 deletions public/opensearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription
xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/addons/opensearch/">
<ShortName>Unduck</ShortName>
<Description>A better default search engine (with bangs!)</Description>
<Tags>unduck bangs</Tags>
<Url type="text/html" method="GET" template="https://unduck.link/?q={searchTerms}"/>
<Image height="16" width="16" type="image/svg+xml">https://unduck.link/search.svg</Image>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Query role="example" searchTerms="!g cats"/>
</OpenSearchDescription>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XML file is missing a trailing newline at the end. Adding a newline after the closing </OpenSearchDescription> tag would follow standard file formatting conventions and prevent potential issues with certain tools and version control systems. This is considered a best practice for text files in Unix/Linux environments.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.