diff options
author | Zhijie He <hezhijie0327@hotmail.com> | 2024-12-14 11:20:09 +0800 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-12-16 08:32:35 +0100 |
commit | e90fa48018a35898c17de55c83c527766e6524e9 (patch) | |
tree | dc52afa56f4085cc9987c77c0837a00e4dee8ddd | |
parent | 3742d558ac5fe756a62632fdbdf84f0d3ddb7de2 (diff) | |
download | searxng-e90fa48018a35898c17de55c83c527766e6524e9.tar.gz searxng-e90fa48018a35898c17de55c83c527766e6524e9.zip |
[fix]: fix engine name may break some css style, contains "right", "left", "center"
-rw-r--r-- | searx/templates/simple/macros.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index a6c1f98ab..dbe4314ca 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -19,7 +19,7 @@ <!-- Draw result header --> {% macro result_header(result, favicons, image_proxify) -%} -<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}"> +<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e|replace(' ', '') }}{% endfor %}"> {{- result_open_link(result.url, "url_header") -}} {%- if favicon_resolver != "" %} <div class="favicon"><img loading="lazy" src="{{ favicon_url(result.parsed_url.netloc) }}"></div> |