diff options
author | Jan-Eric Schober <je@schober.industries> | 2022-05-23 17:54:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 23:54:48 +0800 |
commit | b65ad70f5358fbf5bef2875111d5f58bd39854b8 (patch) | |
tree | 71ee0142bbf38cceaecbc4c114572470f717127a /docs | |
parent | d2a91e5e592814f1ecf6934fc714d2a9694500ef (diff) | |
download | gitea-b65ad70f5358fbf5bef2875111d5f58bd39854b8.tar.gz gitea-b65ad70f5358fbf5bef2875111d5f58bd39854b8.zip |
Add the possibility to allow the user to have a favicon which differs from the main logo (#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 <me@silverwind.io>
* Updated generate-images.js to generate favicons from a separate favicons.svg file
This belongs to PR #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 <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/advanced/customizing-gitea.en-us.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index ef798ddbf9..b97ba03482 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -60,14 +60,15 @@ the url `http://gitea.domain.tld/assets/image.png`. ## Changing the logo -To build a custom logo clone the Gitea source repository, replace `assets/logo.svg` and run -`make generate-images`. This will update below output files which you can then place in `$GITEA_CUSTOM/public/img` on your server: +To build a custom logo and/or favicon clone the Gitea source repository, replace `assets/logo.svg` and/or `assets/favicon.svg` and run +`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: -- `public/img/logo.svg` - Used for favicon, site icon, app icon +- `public/img/logo.svg` - Used for site icon, app icon - `public/img/logo.png` - Used for Open Graph -- `public/img/favicon.png` - Used as fallback for browsers that don't support SVG favicons - `public/img/avatar_default.png` - Used as the default avatar image - `public/img/apple-touch-icon.png` - Used on iOS devices for bookmarks +- `public/img/favicon.svg` - Used for favicon +- `public/img/favicon.png` - Used as fallback for browsers that don't support SVG favicons 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/). |