Movatterモバイル変換


[0]ホーム

URL:


Skip to navigationSkip to main content
Blog
Eleventy, 2024 in Review
Versions
Stable
3.1.21 week ago

IndieWeb Avatar

On this page

Feed this runtime service a URL and it will extract an avatar image using these sources:

  1. <link rel="apple-touch-icon">
  2. <link rel="apple-touch-icon-precomposed">
  3. <link rel="icon">
  4. favicon.ico
  5. favicon.ico that isn’t an.ico file
  6. First<img> in<header>

Allrel lookups match against attribute values that are space separated lists.

Open Source

Usage

Try it out on theEleventy API Explorer.

Image URLs have the format:

https://v1.indieweb-avatar.11ty.dev/:url/
  • url must be URI encoded.

Samples

IndieWeb Avatar for 11ty.dev/IndieWeb Avatar for a11yproject.com/IndieWeb Avatar for netlify.com/
<img
src="https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fwww.11ty.dev%2F/"
alt="IndieWeb Avatar for 11ty.dev/"
loading="lazy"
decoding="async"
width="50"
height="50"
/>

<img
src="https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fwww.a11yproject.com%2F/"
alt="IndieWeb Avatar for a11yproject.com/"
loading="lazy"
decoding="async"
width="50"
height="50"
/>

<img
src="https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fwww.netlify.com%2F/"
alt="IndieWeb Avatar for netlify.com/"
loading="lazy"
decoding="async"
width="50"
height="50"
/>

From the Community


Other pages in Runtime APIs


[8]ページ先頭

©2009-2025 Movatter.jp