定制 nerdcel/kirby3-favicon 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固