From c68c53acd8970cacb282f23651d3619e918ffc20 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 20 Nov 2021 10:14:55 +0100 Subject: [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//src/* into a src/themes//* folder. Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 2 +- .../themes/simple/src/svg/searxng-wordmark.svg | 56 ---------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 searx/static/themes/simple/src/svg/searxng-wordmark.svg (limited to 'searx/static') 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/searx/static/themes/simple/src/svg/searxng-wordmark.svg deleted file mode 100644 index b94fe3728..000000000 --- a/searx/static/themes/simple/src/svg/searxng-wordmark.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - image/svg+xml - - - - - - - - - - - - -- cgit v1.2.3 From 4330d7cf5d5bc9617bc778e9a7e8a469274125ee Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 20 Nov 2021 10:49:21 +0100 Subject: [mod] gruntfile.js - define grunt.template _brand & _templates [1] https://gruntjs.com/api/grunt.template Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'searx/static') diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index a82c0ab1c..006d64417 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -5,6 +5,10 @@ module.exports = function(grunt) { const path = require('path'); grunt.initConfig({ + + _brand: '../../../../src/brand', + _templates: '../../../templates', + pkg: grunt.file.readJSON('package.json'), watch: { scripts: { @@ -102,7 +106,7 @@ module.exports = function(grunt) { svgo: ['--config', 'svg4web.svgo.js'] }, files: { - '../../../templates/__common__/searxng-wordmark.min.svg': '../../../../src/brand/searxng-wordmark.svg' + '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg' } } }, -- cgit v1.2.3