Giter VIP home page Giter VIP logo

kirby-favicon's People

Contributors

moritzebeling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kirby-favicon's Issues

not working on safari mac

hello,

somehow the plugin is not showing the favicon on safari mac (latest system and browser version). i see only white :/ i tried with no settings and the full settings in the config...

i have a png, ico and svg in 1024px square size.

i can see the output of the snippet but nothing is showing. also i just realized it is the same on mobile safari and chrome (iOS), mobile firefox iOS is working.

Make favicon changable from panel

Thanks for the awesome plugin and all the research into the favicon specifications!
I've already seen the Make favicon changable from panel feature on the roadmap and I could contribute if you want to. I guess there are multiple ways of implementing this:

  • lookup a favicon_png, favicon_svg, ... field in site
  • use a callback in the configuration that allows returning a files field
    [
      'moritzebeling.kirby-favicon' => [
        'png' => fn($site) => $site->my_png_favicon()
      ]
    ]
  • use query language in the configuration to return a files field
    [
      'moritzebeling.kirby-favicon' => [
        'png' => 'site.my_png_favicon'
      ]
    ]

Callback/query approach could also return the file URL directly instead of a files field. Personally I prefer the query language approach as this is more explicit then the global field lookup but not as verbose as the callback syntax.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.