Skip to content

Commit

Permalink
feat(search): add support for opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
astyled committed Oct 25, 2023
1 parent a2e4a6f commit 79c5688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 79c5688

Please sign in to comment.