Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metaformats: for home pages (ie path /), consider also extracting link rel=icon, etc #6

Open
snarfed opened this issue Jan 9, 2024 · 1 comment

Comments

@snarfed
Copy link
Member

snarfed commented Jan 9, 2024

There's a range of newer alternatives to favicon.ico for indicating an image or icon that represents a web site: link rel=icon, link rel=apple-touch-icon, meta name=msapplication-TileImage, etc. Not sure how many of these we want to dig into, but it might be nice to support at least some of the more established standard ones like link rel=icon.

As an example, https://thecozy.cat/ signed up for Bridgy Fed recently, and has no representative h-card or meta tags that metaformats currently finds, but it has this in its head:

<link rel="icon" href="https://thecozy.cat/wp-content/uploads/2023/08/cropped-The-Cozy-Cat-Logos-AUtumn-32x32.png" sizes="32x32" />
<link rel="icon" href="https://thecozy.cat/wp-content/uploads/2023/08/cropped-The-Cozy-Cat-Logos-AUtumn-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://thecozy.cat/wp-content/uploads/2023/08/cropped-The-Cozy-Cat-Logos-AUtumn-180x180.png" />
<meta name="msapplication-TileImage" content="https://thecozy.cat/wp-content/uploads/2023/08/cropped-The-Cozy-Cat-Logos-AUtumn-270x270.png" />
@snarfed
Copy link
Member Author

snarfed commented Jan 9, 2024

^ that commit (snarfed/webutil@1f162c5) has an example implementation that I'm now using in Bridgy Fed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant