浏览代码

[fix] set the title on the opensearch link tag

Firefox uses the title attributes instead of the ShortName from the xml file
as set in 0fbd7052 which closed #405
François Revol 8 年前
父节点
当前提交
96cfdc77d2
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      searx/templates/courgette/base.html
  2. 1
    1
      searx/templates/legacy/base.html

+ 1
- 1
searx/templates/courgette/base.html 查看文件

22
         {% endblock %}
22
         {% endblock %}
23
         {% block meta %}{% endblock %}
23
         {% block meta %}{% endblock %}
24
         {% block head %}
24
         {% block head %}
25
-        <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
25
+        <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
26
         {% endblock %}
26
         {% endblock %}
27
         <script type="text/javascript">
27
         <script type="text/javascript">
28
             searx = {};
28
             searx = {};

+ 1
- 1
searx/templates/legacy/base.html 查看文件

17
         {% endblock %}
17
         {% endblock %}
18
         {% block meta %}{% endblock %}
18
         {% block meta %}{% endblock %}
19
         {% block head %}
19
         {% block head %}
20
-        <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
20
+        <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
21
         {% endblock %}
21
         {% endblock %}
22
     </head>
22
     </head>
23
     <body>
23
     <body>