2021-06-05 00:29:05 +00:00
|
|
|
{{ $favicon := resources.Get "/favicon.png" -}}
|
|
|
|
{{- $favicon_base64 := $favicon.Content | base64Encode -}}
|
2022-03-09 03:03:09 +00:00
|
|
|
{{- $favicon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
2022-06-09 15:34:49 +00:00
|
|
|
{{- if in site.BaseURL ".onion" -}}
|
2022-08-05 14:24:16 +00:00
|
|
|
<img itemprop="image" width="16" height="16" alt=""
|
|
|
|
src="data:image/png;base64,{{ $favicon_base64 }}" class="u-photo photo" />
|
2022-03-11 05:27:40 +00:00
|
|
|
{{- else -}}
|
2022-08-05 14:24:16 +00:00
|
|
|
<img itemprop="image" width="16" height="16" alt=""
|
|
|
|
src="{{ $favicon_svg.Permalink }}" class="u-photo photo" />
|
2022-06-10 04:24:13 +00:00
|
|
|
{{- end }}
|