mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-27 07:52:33 -05:00
f2ddd44712
The opensearch.xml results in a "site search engine" being added to Chrome, while the sitelinks search tag results in "Search this website" being added to Google Search.
12 lines
673 B
Text
12 lines
673 B
Text
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
|
<ShortName><%= SiteSetting.title %> Search</ShortName>
|
|
<Description>Search for posts on <%= SiteSetting.title %></Description>
|
|
<Tags>discourse forum</Tags>
|
|
<% if SiteSetting.favicon_url =~ /\.ico$/ -%>
|
|
<Image height="16" width="16" type="image/vnd.microsoft.icon"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
|
<%- else -%>
|
|
<Image type="image/png"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
|
<%- end %>
|
|
<Url type="text/html" method="get" template="<%= Discourse.base_url %>/search?q={searchTerms}"/>
|
|
<Query role="example" searchTerms="search term"/>
|
|
</OpenSearchDescription>
|