From 09324f34925676a50fd6be6406e09b4805df4f04 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Thu, 7 Oct 2021 23:48:52 +0200 Subject: [PATCH] [template] move result url to top of article --- searx/templates/simple/macros.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 4368ecb85..4fc4f0d00 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -27,6 +27,9 @@ {% macro result_header(result, favicons, image_proxify) -%}
+

+ {{ result.pretty_url }} +

{{- '' -}} {%- if result.img_src %}{{ result_open_link(result.url) }}{{ result.title|striptags }}{{ result_close_link() }}{% endif -%} {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result.title|striptags }}{{ result_close_link() }}{% endif -%}

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

@@ -40,8 +43,10 @@ {%- macro result_sub_footer(result, proxify) -%} -
{% for engine in result.engines %}{{ engine }}{% endfor %}
{{- '' -}} -

{{ result.pretty_url }}{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}‎ {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}

{{- '' -}} +
+ {% for engine in result.engines %}{{ engine }}{% endfor %} + {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}‎ {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %} +
{{- '' -}}
{{- '' -}} {%- endmacro -%}