Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSearch #276

Merged
merged 1 commit into from
Oct 25, 2023
Merged
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
8 changes: 8 additions & 0 deletions web/static/opensearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>USw Search</ShortName>
<Description>Search for userstyles on UserStyles.world</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">/mascot.svg</Image>
<Url type="text/html" template="/search?q={searchTerms}"/>
<moz:SearchForm>/search</moz:SearchForm>
</OpenSearchDescription>
1 change: 1 addition & 0 deletions web/views/partials/head.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="description" content="A new free and open-source, community-driven, modern alternative to userstyles.org.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ canonical .Canonical }}">
<link rel="search" type="application/opensearchdescription+xml" title="UserStyles.world search" href="/opensearch.xml">
<link rel="stylesheet" href="/css/main.css?v={{ config "appCommitSHA" }}" type="text/css" media="screen">
<link rel="mask-icon" href="/mascot.svg" color="blue">
<link rel="icon" href="/mascot.svg">
Expand Down