🎉 Add favicon for each enviroment

This commit is contained in:
Eva Marco 2026-09-01 10:37:10 +02:00
parent 29376d033b
commit 15f55e6f0a
9 changed files with 10 additions and 4 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -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;

View File

@ -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>

View File

@ -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}}";

View File

@ -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}}";