2016-09-19 21:12:43 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2016-02-13 12:29:53 -06:00
|
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
2016-09-19 21:12:43 -05:00
|
|
|
<ShortName><%= SiteSetting.title %> Search</ShortName>
|
|
|
|
<Description>Search for posts on <%= SiteSetting.title %></Description>
|
|
|
|
<Tags>discourse forum</Tags>
|
2018-11-14 01:03:02 -06:00
|
|
|
<% site_favicon_url = SiteSetting.site_favicon_url %>
|
2019-04-30 01:58:18 -05:00
|
|
|
<% absolute_site_favicon_url = ::UrlHelper.absolute(site_favicon_url) %>
|
2018-11-14 01:03:02 -06:00
|
|
|
<% if site_favicon_url =~ /\.ico$/ -%>
|
|
|
|
<Image height="16" width="16" type="image/vnd.microsoft.icon"><%= absolute_site_favicon_url %></Image>
|
2016-09-19 21:12:43 -05:00
|
|
|
<%- else -%>
|
2018-11-14 01:03:02 -06:00
|
|
|
<Image type="image/png"><%= absolute_site_favicon_url %></Image>
|
2016-09-19 21:12:43 -05:00
|
|
|
<%- end %>
|
2016-09-19 21:25:54 -05:00
|
|
|
<Url type="application/opensearchdescription+xml" rel="self" template="<%= Discourse.base_url %>/opensearch.xml"/>
|
|
|
|
<Url type="text/html" template="<%= Discourse.base_url %>/search?q={searchTerms}"/>
|
2016-09-19 21:12:43 -05:00
|
|
|
<Query role="example" searchTerms="search term"/>
|
2016-02-13 12:29:53 -06:00
|
|
|
</OpenSearchDescription>
|