lix-website/themes/lix/layouts/partials/utilities/create-favicon.html

7 lines
248 B
HTML
Raw Permalink Normal View History

2024-04-27 03:39:10 +00:00
{{- $favicon := resources.Get (printf "uploads/%s" .filename) -}}
{{- if eq $favicon nil -}}
{{- $favicon = .logo.Fit (printf "%s png" .size) -}}
{{- $favicon = slice $favicon | resources.Concat .filename -}}
{{- end }}
{{- return $favicon -}}