diff --git a/Makefile b/Makefile index fbc1c4859..2ef352eb1 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,13 @@ minimal: bin/buildout minimal.cfg setup.py bin/buildout -c minimal.cfg $(options) styles: - @lessc -x searx/static/less/style.less > searx/static/css/style.css + @lessc -x searx/static/default/less/style.less > searx/static/default/css/style.css locales: @pybabel compile -d searx/translations clean: @rm -rf .installed.cfg .mr.developer.cfg bin parts develop-eggs \ - searx.egg-info lib include .coverage coverage searx/static/css/*.css + searx.egg-info lib include .coverage coverage searx/static/default/css/*.css .PHONY: all tests robot flake8 coverage production minimal styles locales clean diff --git a/searx/settings.yml b/searx/settings.yml index eac7593c6..69f22f5d4 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -4,6 +4,8 @@ server: debug : True request_timeout : 2.0 # seconds base_url : False + themes_path : "" + default_theme : default engines: - name : wikipedia diff --git a/searx/static/css/style.css b/searx/static/default/css/style.css similarity index 100% rename from searx/static/css/style.css rename to searx/static/default/css/style.css diff --git a/searx/static/img/favicon.png b/searx/static/default/img/favicon.png similarity index 100% rename from searx/static/img/favicon.png rename to searx/static/default/img/favicon.png diff --git a/searx/static/img/github_ribbon.png b/searx/static/default/img/github_ribbon.png similarity index 100% rename from searx/static/img/github_ribbon.png rename to searx/static/default/img/github_ribbon.png diff --git a/searx/static/img/icon_github.ico b/searx/static/default/img/icon_github.ico similarity index 100% rename from searx/static/img/icon_github.ico rename to searx/static/default/img/icon_github.ico diff --git a/searx/static/img/icon_soundcloud.ico b/searx/static/default/img/icon_soundcloud.ico similarity index 100% rename from searx/static/img/icon_soundcloud.ico rename to searx/static/default/img/icon_soundcloud.ico diff --git a/searx/static/img/icon_stackoverflow.ico b/searx/static/default/img/icon_stackoverflow.ico similarity index 100% rename from searx/static/img/icon_stackoverflow.ico rename to searx/static/default/img/icon_stackoverflow.ico diff --git a/searx/static/img/icon_twitter.ico b/searx/static/default/img/icon_twitter.ico similarity index 100% rename from searx/static/img/icon_twitter.ico rename to searx/static/default/img/icon_twitter.ico diff --git a/searx/static/img/icon_vimeo.ico b/searx/static/default/img/icon_vimeo.ico similarity index 100% rename from searx/static/img/icon_vimeo.ico rename to searx/static/default/img/icon_vimeo.ico diff --git a/searx/static/img/icon_wikipedia.ico b/searx/static/default/img/icon_wikipedia.ico similarity index 100% rename from searx/static/img/icon_wikipedia.ico rename to searx/static/default/img/icon_wikipedia.ico diff --git a/searx/static/img/icon_youtube.ico b/searx/static/default/img/icon_youtube.ico similarity index 100% rename from searx/static/img/icon_youtube.ico rename to searx/static/default/img/icon_youtube.ico diff --git a/searx/static/img/preference-icon.png b/searx/static/default/img/preference-icon.png similarity index 100% rename from searx/static/img/preference-icon.png rename to searx/static/default/img/preference-icon.png diff --git a/searx/static/img/search-icon.png b/searx/static/default/img/search-icon.png similarity index 100% rename from searx/static/img/search-icon.png rename to searx/static/default/img/search-icon.png diff --git a/searx/static/img/searx.png b/searx/static/default/img/searx.png similarity index 100% rename from searx/static/img/searx.png rename to searx/static/default/img/searx.png diff --git a/searx/static/img/searx_logo.svg b/searx/static/default/img/searx_logo.svg similarity index 100% rename from searx/static/img/searx_logo.svg rename to searx/static/default/img/searx_logo.svg diff --git a/searx/static/js/mootools-autocompleter-1.1.2-min.js b/searx/static/default/js/mootools-autocompleter-1.1.2-min.js similarity index 100% rename from searx/static/js/mootools-autocompleter-1.1.2-min.js rename to searx/static/default/js/mootools-autocompleter-1.1.2-min.js diff --git a/searx/static/js/mootools-core-1.4.5-min.js b/searx/static/default/js/mootools-core-1.4.5-min.js similarity index 100% rename from searx/static/js/mootools-core-1.4.5-min.js rename to searx/static/default/js/mootools-core-1.4.5-min.js diff --git a/searx/static/js/searx.js b/searx/static/default/js/searx.js similarity index 100% rename from searx/static/js/searx.js rename to searx/static/default/js/searx.js diff --git a/searx/static/less/autocompleter.less b/searx/static/default/less/autocompleter.less similarity index 100% rename from searx/static/less/autocompleter.less rename to searx/static/default/less/autocompleter.less diff --git a/searx/static/less/definitions.less b/searx/static/default/less/definitions.less similarity index 100% rename from searx/static/less/definitions.less rename to searx/static/default/less/definitions.less diff --git a/searx/static/less/mixins.less b/searx/static/default/less/mixins.less similarity index 100% rename from searx/static/less/mixins.less rename to searx/static/default/less/mixins.less diff --git a/searx/static/less/search.less b/searx/static/default/less/search.less similarity index 100% rename from searx/static/less/search.less rename to searx/static/default/less/search.less diff --git a/searx/static/less/style.less b/searx/static/default/less/style.less similarity index 100% rename from searx/static/less/style.less rename to searx/static/default/less/style.less diff --git a/searx/templates/about.html b/searx/templates/default/about.html similarity index 97% rename from searx/templates/about.html rename to searx/templates/default/about.html index 0ddf12254..19aba1905 100644 --- a/searx/templates/about.html +++ b/searx/templates/default/about.html @@ -1,6 +1,6 @@ -{% extends 'base.html' %} +{% extends 'default/base.html' %} {% block content %} -{% include 'github_ribbon.html' %} +{% include 'default/github_ribbon.html' %}
{{ _('about') }} {{ _('preferences') }} diff --git a/searx/templates/opensearch.xml b/searx/templates/default/opensearch.xml similarity index 100% rename from searx/templates/opensearch.xml rename to searx/templates/default/opensearch.xml diff --git a/searx/templates/opensearch_response_rss.xml b/searx/templates/default/opensearch_response_rss.xml similarity index 100% rename from searx/templates/opensearch_response_rss.xml rename to searx/templates/default/opensearch_response_rss.xml diff --git a/searx/templates/preferences.html b/searx/templates/default/preferences.html similarity index 90% rename from searx/templates/preferences.html rename to searx/templates/default/preferences.html index eeb86577f..7d35de7c3 100644 --- a/searx/templates/preferences.html +++ b/searx/templates/default/preferences.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "default/base.html" %} {% block head %} {% endblock %} {% block content %}