diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-11-21 11:46:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-21 11:46:24 +0100 |
| commit | d51298177aa9917fc862d44f56dc0249752dc8d9 (patch) | |
| tree | 2861cbc84d744c0d4842e06261c319b14d985c9a | |
| parent | 1c8b731791f1ca82887e776fefed86618a775b36 (diff) | |
| parent | 4330d7cf5d5bc9617bc778e9a7e8a469274125ee (diff) | |
Merge pull request #528 from return42/brand
[brand] initial - folder src/brand for searxng-wordmark
| -rwxr-xr-x | manage | 3 | ||||
| -rw-r--r-- | searx/static/themes/simple/gruntfile.js | 6 | ||||
| -rw-r--r-- | src/brand/searxng-wordmark.svg (renamed from searx/static/themes/simple/src/svg/searxng-wordmark.svg) | 0 |
3 files changed, 6 insertions, 3 deletions
@@ -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..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/svg/searxng-wordmark.svg' + '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _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 |