mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 01:39:24 +02:00
[mod] add CSS (LESS) to xsl style to view rss in browser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
5fbea0b62d
commit
cf8c36f351
5 changed files with 61 additions and 1 deletions
|
@ -614,6 +614,14 @@ def client_token(token=None):
|
|||
return Response('', mimetype='text/css')
|
||||
|
||||
|
||||
@app.route('/rss.xsl', methods=['GET', 'POST'])
|
||||
def rss_xsl():
|
||||
return render_template(
|
||||
f"{request.preferences.get_value('theme')}/rss.xsl",
|
||||
url_for=custom_url_for,
|
||||
)
|
||||
|
||||
|
||||
@app.route('/search', methods=['GET', 'POST'])
|
||||
def search():
|
||||
"""Search query in q and return results.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue