Skip to content

Commit

Permalink
[mod] simple theme: update favicons and the logo in the search results
Browse files Browse the repository at this point in the history
  • Loading branch information
dalf committed Nov 6, 2021
1 parent 5cb20c6 commit 0e64d43
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 42 deletions.
12 changes: 8 additions & 4 deletions searx/static/themes/simple/src/less/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@

#search_logo {
grid-area: logo;
}
display: flex;
align-items: center;
justify-content: center;

div.search_logo_img {
width: 30px;
height: 30px;
svg {
flex: 1;
width: 30px;
height: 30px;
}
}

.search_categories {
Expand Down
1 change: 1 addition & 0 deletions searx/templates/__common__/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions searx/templates/simple/search.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
<a id="search_logo" href="{{ url_for('index') }}">
<div class="search_logo_img">
{{ insert_xml('img/searxng-wordmark.svg') }}
</div>
<span hidden>SearXNG</span>
{% include '__common__/logo.svg' without context %}
</a>
<div id="search_wrapper">
<div class="search_box">
Expand Down
33 changes: 0 additions & 33 deletions searx/theme.py

This file was deleted.

2 changes: 0 additions & 2 deletions searx/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
settings,
searx_debug,
)
from searx import theme

from searx.data import ENGINE_DESCRIPTIONS
from searx.settings_defaults import OUTPUT_FORMATS
Expand Down Expand Up @@ -455,7 +454,6 @@ def render(template_name, override_theme=None, **kwargs):
kwargs['get_setting'] = get_setting

# helpers to create links to other pages
kwargs['insert_xml'] = theme.insert_xml
kwargs['url_for'] = url_for_theme # override url_for function in templates
kwargs['image_proxify'] = image_proxify
kwargs['proxify'] = proxify if settings.get('result_proxy', {}).get('url') else None
Expand Down

0 comments on commit 0e64d43

Please sign in to comment.