summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-13 15:08:54 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-13 15:40:00 +0100
commita364e5485971601859c80b021f2d0baa45e4dd76 (patch)
tree0f5ba369981b80761779f20f5b40b4f12fe71314
parent6debda2404bd7c1aa76efc7c710a8c24dc6b6136 (diff)
downloadsearxng-a364e5485971601859c80b021f2d0baa45e4dd76.tar.gz
searxng-a364e5485971601859c80b021f2d0baa45e4dd76.zip
[fix] delete trailing whitespace
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--searx/templates/simple/categories.html2
-rw-r--r--searx/templates/simple/icons.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/simple/categories.html b/searx/templates/simple/categories.html
index 71fdca90a..29616f127 100644
--- a/searx/templates/simple/categories.html
+++ b/searx/templates/simple/categories.html
@@ -10,7 +10,7 @@
'science': 'school-outline',
'files': 'file-tray-full-outline',
'social media': 'people-outline',
-} -%}
+} -%}
<div id="categories" class="search_categories">{{- '' -}}
<div id="categories_container">
{%- for category in categories -%}
diff --git a/searx/templates/simple/icons.html b/searx/templates/simple/icons.html
index ffd5041ca..3093e3e29 100644
--- a/searx/templates/simple/icons.html
+++ b/searx/templates/simple/icons.html
@@ -20,13 +20,13 @@
'file-tray-full-outline':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path d="M384 80H128c-26 0-43 14-48 40L48 272v112a48.14 48.14 0 0048 48h320a48.14 48.14 0 0048-48V272l-32-152c-5-27-23-40-48-40z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M48 272h144M320 272h144M192 272a64 64 0 00128 0M144 144h224M128 208h256"/></svg>',
'people-outline':'<svg class="ionicon" viewBox="0 0 512 512" aria-hidden="true"><path d="M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M336 304c-65.17 0-127.84 32.37-143.54 95.41-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32"/><path d="M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M206 306c-18.05-8.27-37.93-11.45-59-11.45-52 0-102.1 25.85-114.65 76.2-1.65 6.66 2.53 13.25 9.37 13.25H154" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32"/></svg>',
-}
+}
-%}
-
+
{% macro icon(action, alt) -%}
{{ icons[action] | replace("ionicon", "ion-icon") | safe }}
{%- endmacro %}
-
+
{% macro icon_small(action) -%}
{{ icons[action] | replace("ionicon", "ion-icon-small") | safe }}
{%- endmacro %}