1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 09:42:09 +00:00
seirdy.one/layouts/partials/indieweb-icon.html
Rohan Kumar 0b1a504b65
Fix onion site u-photo
Switch away from inline images; they cause more problems than they're
worth.
2024-03-18 18:09:15 -04:00

7 lines
306 B
HTML

{{ $favicon := "/favicon.svg" -}}
{{- if in site.BaseURL ".onion" -}}
{{- $favicon = "/favicon.png" -}}
{{- end -}}
{{- with (partialCached "cache-bust.html" "/favicon.png" "/favicon.png") -}}
<img itemprop="image" width="16" height="16" alt="" src="{{ .Permalink }}" class="u-photo photo" />
{{- end -}}