2016-09-20 10:12:43 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2016-02-14 02:29:53 +08:00
|
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
2016-09-20 10:12:43 +08:00
|
|
|
<ShortName><%= SiteSetting.title %> Search</ShortName>
|
|
|
|
<Description>Search for posts on <%= SiteSetting.title %></Description>
|
|
|
|
<Tags>discourse forum</Tags>
|
|
|
|
<% if SiteSetting.favicon_url =~ /\.ico$/ -%>
|
2016-02-14 02:29:53 +08:00
|
|
|
<Image height="16" width="16" type="image/vnd.microsoft.icon"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
2016-09-20 10:12:43 +08:00
|
|
|
<%- else -%>
|
2016-02-14 02:29:53 +08:00
|
|
|
<Image type="image/png"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
2016-09-20 10:12:43 +08:00
|
|
|
<%- end %>
|
|
|
|
<Url type="text/html" method="get" template="<%= Discourse.base_url %>/search?q={searchTerms}"/>
|
|
|
|
<Query role="example" searchTerms="search term"/>
|
2016-02-14 02:29:53 +08:00
|
|
|
</OpenSearchDescription>
|