mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05:00
Well formed OpenSearch/XML
1 of 2 changes for OpenSearch to better support Firefox.
This commit is contained in:
parent
ce841027e5
commit
222ef942ee
1 changed files with 9 additions and 8 deletions
|
@ -1,12 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||||
<ShortName><%= SiteSetting.title %> Search</ShortName>
|
<ShortName><%= SiteSetting.title %> Search</ShortName>
|
||||||
<Description>Search for posts on <%= SiteSetting.title %></Description>
|
<Description>Search for posts on <%= SiteSetting.title %></Description>
|
||||||
<Tags>discourse forum</Tags>
|
<Tags>discourse forum</Tags>
|
||||||
<% if SiteSetting.favicon_url =~ /\.ico$/ -%>
|
<% if SiteSetting.favicon_url =~ /\.ico$/ -%>
|
||||||
<Image height="16" width="16" type="image/vnd.microsoft.icon"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
<Image height="16" width="16" type="image/vnd.microsoft.icon"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
<Image type="image/png"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
<Image type="image/png"><%= UrlHelper.absolute SiteSetting.favicon_url %></Image>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<Url type="text/html" method="get" template="<%= Discourse.base_url %>/search?q={searchTerms}"/>
|
<Url type="text/html" method="get" template="<%= Discourse.base_url %>/search?q={searchTerms}"/>
|
||||||
<Query role="example" searchTerms="search term"/>
|
<Query role="example" searchTerms="search term"/>
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
|
|
Loading…
Reference in a new issue