summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-04-19 09:32:51 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-04-19 09:37:41 +0200
commit2bcd610eeb86536a3bf1d206fddb1cb488b3c69e (patch)
tree23a6aca9c3e354988bb77ee5eb3ddcfbf296a41f /searx/templates/simple/macros.html
parente22dc2ba36bfbd578c8f065975b35e178dce7a13 (diff)
downloadsearxng-2bcd610eeb86536a3bf1d206fddb1cb488b3c69e.tar.gz
searxng-2bcd610eeb86536a3bf1d206fddb1cb488b3c69e.zip
[fix] add missing result.length and result.author to simple theme
Closes: https://github.com/searxng/searxng/issues/1027 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html6
1 files changed, 4 insertions, 2 deletions
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 @@
<!-- Draw result sub header -->
{%- macro result_sub_header(result) -%}
- {% if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
- {%- if result.metadata %} <div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
+ {%- if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
+ {%- if result.length %}<div class="result_length">{{ _('Length') }}: {{ result.length }}</div>{% endif -%}
+ {%- if result.author %}<div class="result_author">{{ _('Author') }}: {{ result.author }}</div>{% endif -%}
+ {%- if result.metadata %}<div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
{%- endmacro -%}
<!-- Draw result sub footer -->