Attempt to resolve #62

Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
GitHub Action
2024-04-09 11:20:01 +00:00
parent a6b3dcb3a4
commit df9511b184

View File

@ -11,8 +11,9 @@
{{- end -}}
{{ $favicon := "images/favicon.svg" }}
{{- if (fileExists (printf "assets/%s" $favicon)) -}}
{{- $svg_fav := resources.Get $favicon | minify -}}
<link rel="icon" href="{{ $svg_fav.Permalink }}" type="image/svg+xml">
{{- with resources.Get $favicon | minify -}}
<link rel="icon" href="{{ .Permalink }}" type="image/svg+xml">
{{- end -}}
{{- else if (fileExists "static/favicon.svg") -}}
<link rel="icon" href="{{"favicon.svg" | relURL}}" type="image/svg+xml">
{{- end -}}