mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 06:28:47 +00:00
🎉 Add favicon for each enviroment
This commit is contained in:
parent
29376d033b
commit
15f55e6f0a
@ -44,8 +44,14 @@ update_oidc_name() {
|
||||
fi
|
||||
}
|
||||
|
||||
update_favicon() {
|
||||
local favicon="${PENPOT_FAVICON:-favicon.png}"
|
||||
find /var/www/app -maxdepth 1 -name "*.html" -o -name "*.svg" 2>/dev/null | xargs -r sed -i "s|__PENPOT_FAVICON__|$favicon|g"
|
||||
}
|
||||
|
||||
update_flags /var/www/app/js/config.js
|
||||
update_oidc_name /var/www/app/js/config.js
|
||||
update_favicon
|
||||
|
||||
#########################################
|
||||
## Nginx Config
|
||||
|
||||
BIN
frontend/resources/images/favicon-develop.png
Normal file
BIN
frontend/resources/images/favicon-develop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
frontend/resources/images/favicon-local.png
Normal file
BIN
frontend/resources/images/favicon-local.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
frontend/resources/images/favicon-staging.png
Normal file
BIN
frontend/resources/images/favicon-staging.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
frontend/resources/images/favicon-tokens.png
Normal file
BIN
frontend/resources/images/favicon-tokens.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Penpot - Challenge</title>
|
||||
<link rel="icon" href="images/favicon.png" />
|
||||
<link rel="icon" href="images/__PENPOT_FAVICON__" />
|
||||
|
||||
<script>
|
||||
var params = new URL(document.location.toString()).searchParams;
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<link href="css/debug.css?version={{& version_tag}}" rel="stylesheet" type="text/css" />
|
||||
{{/isDebug}}
|
||||
|
||||
<link rel="icon" href="images/favicon.png?version={{& version_tag }}" />
|
||||
<link rel="icon" href="images/__PENPOT_FAVICON__?version={{& version_tag }}" />
|
||||
|
||||
<script type="importmap">{{& manifest.importmap }}</script>
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Penpot - Rasterizer</title>
|
||||
<link rel="icon" href="images/favicon.png?version={{& version_tag }}" />
|
||||
<link rel="icon" href="images/__PENPOT_FAVICON__?version={{& version_tag }}" />
|
||||
|
||||
<script>
|
||||
globalThis.penpotVersion = "{{& version}}";
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
<title>Penpot - Render</title>
|
||||
|
||||
<link rel="icon" href="images/favicon.png?version={{& version_tag }}" />
|
||||
<link rel="icon" href="images/__PENPOT_FAVICON__?version={{& version_tag }}" />
|
||||
|
||||
<script>
|
||||
globalThis.penpotVersion = "{{& version}}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user