7 lines
248 B
HTML
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 -}}
|