diff options
author | Alexandre Flament <alex@al-f.net> | 2022-05-24 23:14:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 23:14:47 +0200 |
commit | d694b339c5e698013423eff8b4168a9687f47f69 (patch) | |
tree | 4b5e0c8317f9ae357e542bf27d53671e986d984e /searx | |
parent | 61535a4c206aa247a6fa87697b70668048086e27 (diff) | |
parent | 0063427309b6fc0b202d7b63a01e8930bf5aab44 (diff) | |
download | searxng-d694b339c5e698013423eff8b4168a9687f47f69.tar.gz searxng-d694b339c5e698013423eff8b4168a9687f47f69.zip |
Merge pull request #1214 from dalf/update_template_image
Template images.html: always use JS to lazy load the full size images
Diffstat (limited to 'searx')
-rw-r--r-- | searx/templates/simple/result_templates/images.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index 902fd8b24..8aadbd204 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -9,11 +9,7 @@ <a class="result-detail-previous" href="#">{{ icon('chevron-left') }}</a>{{- "" -}} <a class="result-detail-next" href="#">{{ icon('chevron-right') }}</a>{{- "" -}} <a class="result-images-source" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}"> - {%- if result.thumbnail_src -%} - <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}"> - {%- else -%} - <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy" width="200" height="200"> - {%- endif -%} + <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}">{{- "" -}} </a>{{- "" -}} <div class="result-images-labels">{{- "" -}} <h4>{{ result.title|striptags }}</h4>{{- "" -}} |