diff options
| author | 2026-08-01 13:15:38 +0700 | |
|---|---|---|
| committer | 2026-08-01 13:15:38 +0700 | |
| commit | 8a90bca75c8d8755016b46747ca943bb7b37140c (patch) | |
| tree | e45289bb96aea9216cb33a550e13c3fe477fa2cd /cgitrc.5.txt | |
| parent | 793860dbd6df42d5bbf05542f2292a1c6d30fc76 (diff) | |
| download | cgitext-1.3.1+11.tar.gz cgitext-1.3.1+11.zip | |
logo: include svg variant for both favicon and logov1.3.1+11
The reasoning behind using svg as primary defaults is simple – at
close-up it is much neater, plus svg favicon is supported since 2015 in
Firefox, 2020 in Chromium, 2025 in Safari. For old browsers ico is still
kept as a fallback.
The svg was auto-generated using a Python script and then simplified to
a path, but kept close to an original.
Diffstat (limited to 'cgitrc.5.txt')
| -rw-r--r-- | cgitrc.5.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 76b2085..6ddb977 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -240,9 +240,14 @@ enable-tree-linenumbers:: for plaintext blobs printed in the tree view. Default value: "1". favicon:: - Url used as link to a shortcut icon for cgit. It is suggested to use - the value "/favicon.ico" since certain browsers will ignore other - values. Default value: "/favicon.ico". + Url used as link to a shortcut icon for cgit. It is suggested to + always include the value "/favicon.ico" since certain browsers will + ignore other values. May be given multiple times, each favicon URL + path is added in the head section of the document in turn, letting + the browser pick the icon it prefers. The mimetype of each icon is + deduced from the extension of its url ("ico", "png", "svg", "gif", + "jpg", "jpeg", "webp" and "avif" are recognized) and emitted as a + "type" attribute. Default value: "/favicon.svg", "/favicon.ico". footer:: The content of the file specified with this option will be included @@ -272,7 +277,7 @@ local-time:: logo:: Url which specifies the source of an image which will be used as a logo - on all cgit pages. Default value: "/cgit.png". + on all cgit pages. Default value: "/cgit.svg". logo-link:: Url loaded when clicking on the cgit logo image. If unspecified the @@ -957,7 +962,8 @@ enable-log-linecount=1 branch-sort=age -# Add a cgit favicon +# Add cgit favicons +favicon=/favicon.svg favicon=/favicon.ico |