IndieWeb 头像
Feed this runtime service a URL and it will extract an avatar image using these sources:
<link rel="apple-touch-icon"><link rel="apple-touch-icon-precomposed"><link rel="icon">favicon.icofavicon.icothat isn’t an.icofile- First
<img>in<header>
All rel lookups match against attribute values that are space separated lists.
Open Source
Usage
Try it out on the Eleventy API Explorer.
Image URLs have the format:
https://avatar.w3c.cool/:url/
urlmust be URI encoded.
Samples
<img
src="/img/default-avatar.svg"
alt="IndieWeb Avatar for blog.w3c.cool/"
loading="lazy"
width="50"
height="50"
/>
<img
src="/img/default-avatar.svg"
alt="IndieWeb Avatar for a11yproject.com/"
loading="lazy"
width="50"
height="50"
/>
<img
src="/img/default-avatar.svg"
alt="IndieWeb Avatar for netlify.com/"
loading="lazy"
width="50"
height="50"
/>
