medienbaecker / kirby-autofavicon
Kirby AutoFavicon
Fund package maintenance!
www.paypal.me/medienbaecker/10
a.paddle.com/v2/click/1129/36156?link=1170
Installs: 216
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 1
Open Issues: 1
Type:kirby-plugin
Requires
- getkirby/cms: ^3.0
- getkirby/composer-installer: ^1.1
This package is auto-updated.
Last update: 2025-06-28 09:22:30 UTC
README
Automatically generates an SVG favicon.
Usage
Insert <?php snippet('autofavicon') ?>
in your <head>
and the plugin will add link tags for modern browsers and Safari.
Options
By default, the plugin will use the first letter of your site title and a black or white background color — depending on the system's prefers-color-scheme
setting. You can customize the text and colors in your config.php
file:
# site/config/config.php return [ 'medienbaecker.autofavicon.text' => 'A', 'medienbaecker.autofavicon.color' => '#000000', 'medienbaecker.autofavicon.color_dark' => '#ffffff', 'medienbaecker.autofavicon.text_color' => '#ffffff', 'medienbaecker.autofavicon.text_color_dark' => '#000000', ]
Contributors
Thanks to sixtyeight for adding the text_color
and text_color_dark
options.