mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 00:09:18 +02:00
[enh] set up special css classes for highlighting results + highlight definitions with dark grey border
This commit is contained in:
parent
04c408389d
commit
74ca542a02
3 changed files with 14 additions and 8 deletions
|
@ -13,9 +13,10 @@ def response(resp):
|
|||
results = []
|
||||
if 'Definition' in search_res:
|
||||
if search_res.get('AbstractURL'):
|
||||
res = {'title' : search_res.get('Heading', '')
|
||||
,'content' : search_res.get('Definition', '')
|
||||
,'url' : search_res.get('AbstractURL', '')
|
||||
res = {'title' : search_res.get('Heading', '')
|
||||
,'content' : search_res.get('Definition', '')
|
||||
,'url' : search_res.get('AbstractURL', '')
|
||||
,'class' : 'definition_result'
|
||||
}
|
||||
results.append(res)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue