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" -}}
|
|
|
|
{{- $favicon_bigpng := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
2022-03-09 03:12:25 +00:00
|
|
|
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
2022-03-09 03:03:09 +00:00
|
|
|
<picture itemprop="image" class="u-photo photo">
|
|
|
|
<source srcset="{{ $favicon_svg.RelPermalink }}" type="image/svg+xml">
|
2022-03-09 03:12:25 +00:00
|
|
|
{{- end -}}
|
2022-03-09 03:03:09 +00:00
|
|
|
<img src="data:image/png;base64,{{ $favicon_base64 }}" width="16" height="16" alt=""
|
|
|
|
srcset="{{ $favicon_bigpng.RelPermalink }} 2x">
|
2022-03-09 03:12:25 +00:00
|
|
|
{{- if (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}}
|
2022-03-09 03:03:09 +00:00
|
|
|
</picture>
|
2022-03-09 03:12:25 +00:00
|
|
|
{{- end -}}
|