diff options
author | Markus Heiser <markus@darmarit.de> | 2021-03-25 21:44:07 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-22 12:37:18 +0200 |
commit | 213041adc782e2f9c13038033f41f8935945a0e6 (patch) | |
tree | 1eba2e2529f103ee4eac43dce173963908580735 /searx/templates/simple | |
parent | a80bf1ba9779ffaa0651d365dff1508aabf4931f (diff) | |
download | searxng-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.html | 1 |
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 --> |