diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-28 15:24:39 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-29 20:36:31 +0100 |
commit | 944b73511a3125212dc3d53f957bd5960c8fc0d0 (patch) | |
tree | fe0d7a5c1e8eee96883a7ee59ac015a389865013 /searx/static/themes/simple/svg4favicon.svgo.js | |
parent | 989f9e97f0225f72edca82d3ff02a0acc890bfa5 (diff) | |
download | searxng-944b73511a3125212dc3d53f957bd5960c8fc0d0.tar.gz searxng-944b73511a3125212dc3d53f957bd5960c8fc0d0.zip |
[enh] add SVG favicon href="favicon.svg" type="image/svg+xml"
Add link::
<link rel="icon" href="favicon.png" sizes="any">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
Modern browsers should request::
INFO werkzeug : 127.0.0.1 - - [28/Nov/2021 17:03:07] "GET /static/themes/simple/img/favicon.svg HTTP/1.1" 200 -
[1] https://github.com/audreyfeldroy/favicon-cheat-sheet#svg-file
[2] https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/svg4favicon.svgo.js')
-rw-r--r-- | searx/static/themes/simple/svg4favicon.svgo.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/searx/static/themes/simple/svg4favicon.svgo.js b/searx/static/themes/simple/svg4favicon.svgo.js new file mode 100644 index 000000000..b9dd0da8e --- /dev/null +++ b/searx/static/themes/simple/svg4favicon.svgo.js @@ -0,0 +1,16 @@ +/** + * @license + * SPDX-License-Identifier: AGPL-3.0-or-later + * + * svgo config: Optimize SVG for WEB usage + */ + +module.exports = { + plugins: [ + { + name: 'preset-default', + }, + // make diff friendly + 'sortAttrs', + ], +}; |