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-03-11 05:27:40 +00:00
|
|
|
<img itemprop="image" class="u-photo photo" width="16" height="16" alt=""
|
2022-06-09 15:34:49 +00:00
|
|
|
src="data:image/png;base64,{{ $favicon_base64 }}" />
|
2022-03-11 05:27:40 +00:00
|
|
|
{{- else -}}
|
2022-06-21 05:57:09 +00:00
|
|
|
<img itemprop="image" class="u-photo photo" width="16" height="16" alt=""
|
|
|
|
src="{{ $favicon_svg.RelPermalink }}" />
|
2022-06-10 04:24:13 +00:00
|
|
|
{{- end }}
|