summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-20 10:14:55 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-20 10:14:55 +0100
commitc68c53acd8970cacb282f23651d3619e918ffc20 (patch)
tree9e985fba502c9ddf155865086a5d2d005fce0b35
parentbc0cf9e83e2b52a45ea9a13ffdace07a622ed0cc (diff)
[brand] initial - folder src/brand for searxng-wordmark
Folder src/brand is intended to place logo, wordmark and more in. This commit moves the origin (source) of searxng-wordmark.svg from the simple theme into this folder About the new created src/ folder: On the long term we can move all the files from static/themes/<name>/src/* into a src/themes/<name>/* folder. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rwxr-xr-xmanage3
-rw-r--r--searx/static/themes/simple/gruntfile.js2
-rw-r--r--src/brand/searxng-wordmark.svg (renamed from searx/static/themes/simple/src/svg/searxng-wordmark.svg)0
3 files changed, 2 insertions, 3 deletions
diff --git a/manage b/manage
index 494c8174f..ec8e13c0a 100755
--- a/manage
+++ b/manage
@@ -706,10 +706,9 @@ themes.oscar() {
}
themes.simple() {
- local src="searx/static/themes/simple/src"
local static="searx/static/themes/simple"
( set -e
- convert_if_newer "$src/svg/searxng-wordmark.svg" "$static/img/favicon.png" \
+ convert_if_newer "src/brand/searxng-wordmark.svg" "$static/img/favicon.png" \
-transparent white -resize 64x64
build_msg GRUNT "theme: simple"
npm --prefix searx/static/themes/simple run build
diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js
index 3d72a9270..a82c0ab1c 100644
--- a/searx/static/themes/simple/gruntfile.js
+++ b/searx/static/themes/simple/gruntfile.js
@@ -102,7 +102,7 @@ module.exports = function(grunt) {
svgo: ['--config', 'svg4web.svgo.js']
},
files: {
- '../../../templates/__common__/searxng-wordmark.min.svg': 'src/svg/searxng-wordmark.svg'
+ '../../../templates/__common__/searxng-wordmark.min.svg': '../../../../src/brand/searxng-wordmark.svg'
}
}
},
diff --git a/searx/static/themes/simple/src/svg/searxng-wordmark.svg b/src/brand/searxng-wordmark.svg
index b94fe3728..b94fe3728 100644
--- a/searx/static/themes/simple/src/svg/searxng-wordmark.svg
+++ b/src/brand/searxng-wordmark.svg