{{ if fileExists (path.Join "/static" "apple-touch-icon.png") -}} {{ end -}} {{ if fileExists (path.Join "/static" "favicon.svg") -}} {{ end -}} {{ if fileExists (path.Join "/static" "site.webmanifest") -}} {{ end -}} {{ $favname := "" -}} {{ $favsizes := slice "128x128" "96x96" "48x48" "32x32" "16x16" -}} {{ range $favsizes -}} {{ $favname = (printf "favicon-%s.png" .) -}} {{ if fileExists (path.Join "/static" $favname) -}} {{ end -}} {{ end -}}