Add "sizes" attribute to favicon.ico

Otherwise the svg icon won't load. See 020fcc1b9f
This commit is contained in:
Hong Xu
2024-04-09 13:24:20 -07:00
parent df9511b184
commit 8c852efaee

View File

@ -7,7 +7,7 @@
<link rel="author" href="{{"humans.txt" | relURL}}"> <link rel="author" href="{{"humans.txt" | relURL}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}"> <link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
{{- if (fileExists "static/favicon.ico") -}} {{- if (fileExists "static/favicon.ico") -}}
<link rel="icon" href="{{"favicon.ico" | relURL}}" type="image/x-icon"> <link rel="icon" href="{{"favicon.ico" | relURL}}" type="image/x-icon" sizes="48x48">
{{- end -}} {{- end -}}
{{ $favicon := "images/favicon.svg" }} {{ $favicon := "images/favicon.svg" }}
{{- if (fileExists (printf "assets/%s" $favicon)) -}} {{- if (fileExists (printf "assets/%s" $favicon)) -}}