summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorMrPaulBlack <paul@paulgo.io>2021-10-26 23:58:37 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2021-10-27 06:17:37 +0000
commit17237263614c6c0c366384257e812fc96d623dd4 (patch)
tree7e55662535e6c5f800173eb8a06b62995c12c2bd /searx/templates/simple/macros.html
parent8918fb3eb00dc80045a7a49250173565dcdfeb7a (diff)
downloadsearxng-17237263614c6c0c366384257e812fc96d623dd4.tar.gz
searxng-17237263614c6c0c366384257e812fc96d623dd4.zip
[simple theme] make url clickable and cleanup result article header
* url in article head is clickable * url is bigger now 0.96em font * url is now left floating on tablet and phone * there is a 8px top and bottom margin on h3 result heading
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 4fc4f0d00..92c6c9ef2 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -27,9 +27,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 %}">
- <p class="url">
- <span class="url">{{ result.pretty_url }}</span>
- </p>{{- '' -}}
+ <p class="url">{{ result_link(result.url, result.pretty_url, 'url') }}</p>
{%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="image" />{{ result_close_link() }}{% endif -%}
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%}
<h3>{{ result_link(result.url, result.title|safe) }}</h3>