From e17d7632d0ed8284c218f65604ab5fa5d4b8ff81 Mon Sep 17 00:00:00 2001 From: Brock Vojkovic Date: Sun, 11 Aug 2024 08:39:46 +0000 Subject: [feat] add favicons to result urls --- searx/templates/simple/macros.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'searx/templates/simple/macros.html') diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index f7af553b6..418f85227 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -21,9 +21,29 @@ {% macro result_header(result, favicons, image_proxify) -%}
{{- result_open_link(result.url, "url_wrapper") -}} + {% if not rtl %} + {%- if favicon_resolver != "" %} +
+ {{ result.parsed_url.netloc }} +
+ {%- endif -%} + {%- endif -%} {%- for part in get_pretty_url(result.parsed_url) -%} {{- part -}} {%- endfor %} + {% if rtl %} + {%- if favicon_resolver != "" %} +
+ {{ result.parsed_url.netloc }} +
+ {%- endif -%} + {%- endif -%} {{- result_close_link() -}} {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%}

{{ result_link(result.url, result.title|safe) }}

-- cgit v1.2.3