mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
fix opensearch template
* "method" is not a valid attribute of the `Url` element * "ShortName" cannot be empty - fixed site_name being used before it was assigned
This commit is contained in:
parent
e5f8e4babc
commit
d560a6baef
1 changed files with 1 additions and 2 deletions
|
@ -3,14 +3,13 @@
|
||||||
xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||||
xmlns:moz="http://www.mozilla.org/2006/browser/search/"
|
xmlns:moz="http://www.mozilla.org/2006/browser/search/"
|
||||||
>
|
>
|
||||||
<ShortName>{{ site_name }}</ShortName>
|
<ShortName>{{ site.name }}</ShortName>
|
||||||
<Description>{% blocktrans trimmed with site_name=site.name %}
|
<Description>{% blocktrans trimmed with site_name=site.name %}
|
||||||
{{ site_name }} search
|
{{ site_name }} search
|
||||||
{% endblocktrans %}</Description>
|
{% endblocktrans %}</Description>
|
||||||
<Image width="16" height="16" type="image/x-icon">{{ image }}</Image>
|
<Image width="16" height="16" type="image/x-icon">{{ image }}</Image>
|
||||||
<Url
|
<Url
|
||||||
type="text/html"
|
type="text/html"
|
||||||
method="get"
|
|
||||||
template="https://{{ DOMAIN }}{% url 'search' %}?q={searchTerms}"
|
template="https://{{ DOMAIN }}{% url 'search' %}?q={searchTerms}"
|
||||||
/>
|
/>
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
|
|
Loading…
Reference in a new issue