From 2bcd610eeb86536a3bf1d206fddb1cb488b3c69e Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 19 Apr 2022 09:32:51 +0200 Subject: [PATCH] [fix] add missing result.length and result.author to simple theme Closes: https://github.com/searxng/searxng/issues/1027 Signed-off-by: Markus Heiser --- searx/static/themes/simple/src/less/style.less | 4 +++- searx/templates/simple/macros.html | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 30889dd0b..258c222a2 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -260,7 +260,9 @@ article[data-vim-selected].category-social { } } - .published_date { + .published_date, + .result_length, + .result_author { font-size: 0.8em; color: var(--color-result-publishdate-font); } diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 7d9b9f4ae..e06157867 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -32,8 +32,10 @@ {%- macro result_sub_header(result) -%} - {% if result.publishedDate %}{% endif %} - {%- if result.metadata %}
{{ result.metadata|safe }}
{% endif -%} + {%- if result.publishedDate %}{% endif -%} + {%- if result.length %}
{{ _('Length') }}: {{ result.length }}
{% endif -%} + {%- if result.author %}
{{ _('Author') }}: {{ result.author }}
{% endif -%} + {%- if result.metadata %}
{{ result.metadata|safe }}
{% endif -%} {%- endmacro -%}