mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2025-02-17 12:20:06 +00:00
![Rohan Kumar](/assets/img/avatar_default.png)
The favicon is 175 bytes, smaller than the size of the HTTP headers to fetch it. It can be inlined. Now, pages that don't have any other images need just a single request.
5 lines
571 B
HTML
5 lines
571 B
HTML
<!-- re-using the indefinetly-cached favicon to avoid bloating page size -->
|
|
{{ $favicon := resources.Get "/favicon.png" -}}
|
|
{{- $favicon_base64 := $favicon.Content | base64Encode -}}
|
|
<span itemprop="author" class="h-card p-author vcard"><a href="https://seirdy.one" rel="author home" class="u-url url"><img class="u-photo photo" src="data:image/png;base64,{{ $favicon_base64 }}" width="16" height="16" alt="Rohan Kumar"> <span class="p-name fn n"><span class="p-given-name given-name">Rohan</span> <span class="p-family-name family-name">Kumar</span></span></a></span>
|
|
|