Merge pull request #558 from return42/svg-favicon
[enh] add SVG favicon href="favicon.svg" type="image/svg+xml"
This commit is contained in:
		
						commit
						935e5ad417
					
				
										
											Binary file not shown.
										
									
								
							| @ -150,8 +150,16 @@ module.exports = function(grunt) { | |||||||
|           '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg', |           '<%= _templates %>/__common__/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg', | ||||||
|           'img/searxng.svg': '<%= _brand %>/searxng.svg' |           'img/searxng.svg': '<%= _brand %>/searxng.svg' | ||||||
|         } |         } | ||||||
|  |       }, | ||||||
|  |       favicon: { | ||||||
|  |         options: { | ||||||
|  |           svgo: ['--config', 'svg4favicon.svgo.js'] | ||||||
|  |         }, | ||||||
|  |         files: { | ||||||
|  |           'img/favicon.svg': '<%= _brand %>/searxng-wordmark.svg' | ||||||
|         } |         } | ||||||
|       }, |       }, | ||||||
|  |     }, | ||||||
|     svg2png: { |     svg2png: { | ||||||
|       favicon: { |       favicon: { | ||||||
|         files: { |         files: { | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								searx/static/themes/simple/img/favicon.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								searx/static/themes/simple/img/favicon.svg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 726 B | 
							
								
								
									
										16
									
								
								searx/static/themes/simple/svg4favicon.svgo.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								searx/static/themes/simple/svg4favicon.svgo.js
									
									
									
									
									
										Normal file
									
								
							| @ -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', | ||||||
|  |  ], | ||||||
|  | }; | ||||||
| @ -31,7 +31,8 @@ | |||||||
|   {% block head %} |   {% block head %} | ||||||
|   <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> |   <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> | ||||||
|   {% endblock %} |   {% endblock %} | ||||||
|   <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}" /> |   <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}" sizes="any"> | ||||||
|  |   <link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml"> | ||||||
| </head> | </head> | ||||||
| <body class="{{ endpoint }}_endpoint" > | <body class="{{ endpoint }}_endpoint" > | ||||||
|   <main id="main_{{  self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}"> |   <main id="main_{{  self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}"> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user