mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
2badbe2601
This gives files much smaller fingerprints, and supports caching.
10 lines
461 B
HTML
10 lines
461 B
HTML
{{- $src := "" -}}
|
|
{{- if in site.BaseURL ".onion" -}}
|
|
{{- $favicon := resources.Get "/favicon.png" -}}
|
|
{{- $favicon_base64 := $favicon.Content | base64Encode -}}
|
|
{{- $src = printf "data:image/png;base64,%s" $favicon_base64 -}}
|
|
{{- else -}}
|
|
{{- with (partialCached "cache-bust.html" "/favicon.svg" "/favicon.svg") -}}
|
|
{{- $src = .Permalink -}}
|
|
{{- end -}}{{- end -}}
|
|
<img itemprop="image" width="16" height="16" alt="" src="{{ $src }}" class="u-photo photo" />
|