mirror of https://github.com/searxng/searxng.git
Merge pull request #528 from return42/brand
[brand] initial - folder src/brand for searxng-wordmark
This commit is contained in:
commit
d51298177a
3
manage
3
manage
|
@ -706,10 +706,9 @@ themes.oscar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
themes.simple() {
|
themes.simple() {
|
||||||
local src="searx/static/themes/simple/src"
|
|
||||||
local static="searx/static/themes/simple"
|
local static="searx/static/themes/simple"
|
||||||
( set -e
|
( 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
|
-transparent white -resize 64x64
|
||||||
build_msg GRUNT "theme: simple"
|
build_msg GRUNT "theme: simple"
|
||||||
npm --prefix searx/static/themes/simple run build
|
npm --prefix searx/static/themes/simple run build
|
||||||
|
|
|
@ -5,6 +5,10 @@ module.exports = function(grunt) {
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
|
||||||
|
_brand: '../../../../src/brand',
|
||||||
|
_templates: '../../../templates',
|
||||||
|
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
watch: {
|
watch: {
|
||||||
scripts: {
|
scripts: {
|
||||||
|
@ -102,7 +106,7 @@ module.exports = function(grunt) {
|
||||||
svgo: ['--config', 'svg4web.svgo.js']
|
svgo: ['--config', 'svg4web.svgo.js']
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
'../../../templates/__common__/searxng-wordmark.min.svg': 'src/svg/searxng-wordmark.svg'
|
'<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue