Download the PHP package moritzebeling/kirby-favicon without Composer
On this page you can find all versions of the php package moritzebeling/kirby-favicon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moritzebeling/kirby-favicon
More information about moritzebeling/kirby-favicon
Files in moritzebeling/kirby-favicon
Package kirby-favicon
Short Description Kirby plugin to meet all favicon needs
License MIT
Homepage https://github.com/moritzebeling/kirby-favicon
Informations about the package kirby-favicon
Kirby Favicon Plugin
This plugin will solve all your favicon worries :)
Installation
Or download/clone this repo into site/plugins
of your Kirby project.
π Minimal setup
- Inside
assets/favicon
addfavicon.png
The icon should be square, min 180x180px
, but why donβt you just do 1024x1024px
:)
π Recommended setup
- Also add a
favicon.svg
- Inside your HTML
<head>
element, include thefavicon
snippet:
If you want to use transparency in your favicon, you should additionally add an app icon. The mask icon will be used in the MacBook Pro Touch Bar, so it should be simple and with transparent background.
If your website has a changing background color, you should set color
to false, otherwise I recommend to set it to you primary background color.
π€ Full configuration
manifest.json
You can add other values according to the specification.
π€¨ What will it do?
It will automatically serve the following routes:
favicon.ico
apple-touch-icon.png
and all its versions likeapple-touch-icon-precomposed.png
apple-touch-icon-167.png
apple-touch-icon-167-precomposed.png
- and whatever Safari feels like requesting
manifest.json
browserconfig.xml
Per default, the favicon snippet will print the following HTML:
All sizes can be adjusted through the plugin settings.
When minimalist
is set to true
, all sizes are removed:
When extended
option is true
, the following is added:
Panel Favicon
https://getkirby.com/docs/reference/system/options/panel#custom-panel-favicon
Research
This solution is an intersection of what many existing Favion generators provide. You can have a look on my research in the repo wiki: https://github.com/moritzebeling/kirby-favicon/wiki
Development
- Install a fresh Kirby StarterKit
cd site/plugins
git clone
this repo
Roadmap
- [ ] Make favicon changable from panel
βοΈ Support
If you like this plugin, I would be glad if you would invite me for a coffee via PayPal If you have any ideas for further development or stumble upon any problems, please open an issue or PR. Thank you!
Warranty
This plugin is work in progress and comes without any warranty. Use at your own risk.