summaryrefslogtreecommitdiff
path: root/searx/templates/simple
diff options
context:
space:
mode:
authorMarkus Heiser <markus@darmarit.de>2021-03-25 21:44:07 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-04-22 12:37:18 +0200
commit213041adc782e2f9c13038033f41f8935945a0e6 (patch)
tree1eba2e2529f103ee4eac43dce173963908580735 /searx/templates/simple
parenta80bf1ba9779ffaa0651d365dff1508aabf4931f (diff)
downloadsearxng-213041adc782e2f9c13038033f41f8935945a0e6.tar.gz
searxng-213041adc782e2f9c13038033f41f8935945a0e6.zip
[enh] themes - add result.metadata to result sub header
Signed-off-by: Markus Heiser <markus@darmarit.de>
Diffstat (limited to 'searx/templates/simple')
-rw-r--r--searx/templates/simple/macros.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 8b6851e0e..7d456b350 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -35,6 +35,7 @@
<!-- 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 -%}
{%- endmacro -%}
<!-- Draw result sub footer -->