diff options
author | Zhijie He <hezhijie0327@hotmail.com> | 2024-12-14 16:06:56 +0800 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-12-16 08:32:35 +0100 |
commit | 12c27f416f72dc654ca1a2e2123014b4bb464cc1 (patch) | |
tree | e77f9ffe3c1b404da71a341f69279bcbf7b98259 | |
parent | e90fa48018a35898c17de55c83c527766e6524e9 (diff) | |
download | searxng-12c27f416f72dc654ca1a2e2123014b4bb464cc1.tar.gz searxng-12c27f416f72dc654ca1a2e2123014b4bb464cc1.zip |
[enh] add `engine-` prefix, replace blank space to `-`
-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 dbe4314ca..8eb038007 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|replace(' ', '') }}{% 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 %} engine-{{ 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> |