mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2025-02-19 05:10:04 +00:00

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.
3 lines
226 B
HTML
3 lines
226 B
HTML
{{ $favicon := resources.Get "/favicon.png" -}}
|
|
{{- $favicon_base64 := $favicon.Content | base64Encode -}}
|
|
<img class="u-photo photo" src="data:image/png;base64,{{ $favicon_base64 }}" width="16" height="16" alt="Rohan Kumar">
|