Skip to content

Improve favicon support, in particular for light/dark mode #2357

@chalin

Description

@chalin

Possible improvements:

  • Support favicons at the site root
  • Also support icon files being at the root
  • Use with to avoid generating links to files that DNE
  • Report a (suppressible) warning if no favicon is found
  • Support light/dark mode ico files maybe something like this:
    <link rel="icon" href="/favicons/favicon.ico" media="(prefers-color-scheme: light)">
    <link rel="icon" href="/favicons/favicon-dark.ico" media="(prefers-color-scheme: dark)">

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions