Git Product home page Git Product logo

Comments (4)

srid avatar srid commented on July 27, 2024

Before we merge this master, I'm thinking if we should also allow specifying the other icon type -- touch icons (apple-touch-icon and apple-touch-icon-precomposed).

Ref:

from neuron.

srid avatar srid commented on July 27, 2024

Okay, here's what I propose.

There are unmanageable number of favicon combinations, however using svg favicons will simplify the configuration greatly (browser support ongoing).

I suggest basically the following HTML:

<link rel="icon" sizes="any" type="image/svg+xml" href="/static/favicon.svg">
<link rel="alternate icon" href="/static/favicon.png">
<link rel="alternate icon" href="/static/favicon.ico">
<!-- See https://medium.com/swlh/are-you-using-svg-favicons-yet-a-guide-for-modern-browsers-836a6aace3df -->
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">

(If we really want, we can expand this list in future)

Generate each of these only if the corresponding icon file exists in the zettelkasten ./static directory. If no favicons exist, use the default neuron logo as favicon.

Convention over configuration. neuron.dhall need not be touched.

Read Are you using SVG favicons yet?

from neuron.

srid avatar srid commented on July 27, 2024

Icons can also be specified via the manifest.webmanifest file which can likewise be detected and injected as:

<link rel="manifest" href="static/manifest.webmanifest">

from neuron.

srid avatar srid commented on July 27, 2024

Moved to #256

from neuron.

Related Issues (20)

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.