medienbaecker/kirby-autofavicon

1.0.2 2023-02-06 14:55 UTC

This package is auto-updated.

Last update: 2024-05-06 17:43:39 UTC


README

Automatically generates an SVG favicon. Simply insert <?php snippet('autofavicon') ?> in your <head> and the plugin will add link tags for modern browsers and Safari.

Preview

Options

By default, AutoFavicon 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.

# site/config/config.php
return [
	'medienbaecker.autofavicon.text' => 'B',
	'medienbaecker.autofavicon.color' => '#000000',
	'medienbaecker.autofavicon.color_dark' => '#FFFFFF'
]