nerdcel/kirby3-favicon
最新稳定版本:1.2.0
Composer 安装命令:
composer require nerdcel/kirby3-favicon
包简介
Kirby3 plugin to create favicons from the panel.
README 文档
README
This plugin provides helpers to render modern and legacy favicon file for your website.
Installation
Download
Download and copy this repository to /site/plugins/kirby3-favicon.
Git submodule
git submodule add https://github.com/nerdcel/kirby3-favicon.git site/plugins/kirby3-favicon
Composer
composer require nerdcel/kirby3-favicon
Setup
Simply add the following fields to your site blueprint and upload the images.
fields: faviconsvg: type: files label: Favicon SVG uploads: parent: site template: svg max: 1 faviconimage: type: files label: Favicon Legacy uploads: parent: site template: favicon max: 1
What's happening
The Plugin provides a route for the favicon.ico and converts the uploaded legacy image to an .ico image. For modern purpose, an SVG and multiple versions of a PNG file are rendered. Additionally, a manifest.webmanifest route is added to map the right images.
Helpers for the Template
To output the favicons, add the 'favicons' snippet to the header of your site and see if the result matches your needs.
License
MIT
Credits
统计信息
- 总下载量: 2.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-07