lix-website/themes/lix/layouts/partials/utilities/create-favicon.html
2024-04-26 22:49:34 -06:00

7 lines
248 B
HTML

{{- $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 -}}