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 /templates/base | |
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 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 7d64c88251..e75531746a 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -19,7 +19,7 @@ <link rel="alternate" type="application/atom+xml" title="" href="{{.FeedURL}}.atom"> <link rel="alternate" type="application/rss+xml" title="" href="{{.FeedURL}}.rss"> {{end}} - <link rel="icon" href="{{AssetUrlPrefix}}/img/logo.svg" type="image/svg+xml"> + <link rel="icon" href="{{AssetUrlPrefix}}/img/favicon.svg" type="image/svg+xml"> <link rel="alternate icon" href="{{AssetUrlPrefix}}/img/favicon.png" type="image/png"> <link rel="stylesheet" href="{{AssetUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> {{template "base/head_script" .}} |