wikijs
This commit is contained in:
@ -26,7 +26,7 @@ steps: # 定义管道的执行步骤
|
|||||||
registry: https://git.liliyamol.cn:8081
|
registry: https://git.liliyamol.cn:8081
|
||||||
repo: git.liliyamol.cn:8081/mol/searxng
|
repo: git.liliyamol.cn:8081/mol/searxng
|
||||||
# auto_tag: true
|
# auto_tag: true
|
||||||
tags: ["1.0.0", latest]
|
tags: ["1.2.0", latest]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline # 定义一个管道
|
kind: pipeline # 定义一个管道
|
||||||
|
@ -52,13 +52,15 @@ def response(resp):
|
|||||||
try:
|
try:
|
||||||
url = result['path']
|
url = result['path']
|
||||||
title = result['title']
|
title = result['title']
|
||||||
|
content = result['description']
|
||||||
|
locale = result['locale']
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
results.append(
|
results.append(
|
||||||
{
|
{
|
||||||
'url': host + to_string(url),
|
'url': host + '/' + to_string(locale) + '/' + to_string(url),
|
||||||
'title': to_string(title),
|
'title': to_string(title),
|
||||||
'content': '',
|
'content': to_string(content),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
for suggestion in search_result['suggestions']:
|
for suggestion in search_result['suggestions']:
|
||||||
|
Reference in New Issue
Block a user