You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the possibility to allow the user to have a favicon which differs from the main logo (go-gitea#18542)
* Changed the filename of the favicon SVG
This allows the user to have a favicon which differs from the logo.
* Added favicon.svg
This is needed to accommodate the changes for allowing the user to have a differing logo and favicon
* Adjusted page to accommodate what icon is used as favicon
* Added functionality to also generate the favicon.svg via generate-images.js
* Adjusted the description for the new favicon compatibility
Co-authored-by: silverwind <[email protected]>
* Updated generate-images.js to generate favicons from a separate favicons.svg file
This belongs to PR go-gitea#18542.
* Added description on how custom favicons can be generated
* Replaced space indents with tabs
* Synced changes with current state of the file
* Synced changes with current state of the file
Co-authored-by: silverwind <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/customizing-gitea.en-us.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -60,14 +60,15 @@ the url `http://gitea.domain.tld/assets/image.png`.
60
60
61
61
## Changing the logo
62
62
63
-
To build a custom logo clone the Gitea source repository, replace `assets/logo.svg` and run
64
-
`make generate-images`. This will update below output files which you can then place in `$GITEA_CUSTOM/public/img` on your server:
63
+
To build a custom logo and/or favicon clone the Gitea source repository, replace `assets/logo.svg` and/or `assets/favicon.svg` and run
64
+
`make generate-images`. `assets/favicon.svg` is used for the favicon only. This will update below output files which you can then place in `$GITEA_CUSTOM/public/img` on your server:
65
65
66
-
-`public/img/logo.svg` - Used for favicon, site icon, app icon
66
+
-`public/img/logo.svg` - Used for site icon, app icon
67
67
-`public/img/logo.png` - Used for Open Graph
68
-
-`public/img/favicon.png` - Used as fallback for browsers that don't support SVG favicons
69
68
-`public/img/avatar_default.png` - Used as the default avatar image
70
69
-`public/img/apple-touch-icon.png` - Used on iOS devices for bookmarks
70
+
-`public/img/favicon.svg` - Used for favicon
71
+
-`public/img/favicon.png` - Used as fallback for browsers that don't support SVG favicons
71
72
72
73
In case the source image is not in vector format, you can attempt to convert a raster image using tools like [this](https://www.aconvert.com/image/png-to-svg/).
0 commit comments