Skip to content

Commit 474ba60

Browse files
author
skim
committed
Updates favicon order of precedence as it matters to Chrome
1 parent 61885df commit 474ba60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/templates/page.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
{%- if layout.favicon -%}
3232
<link rel="shortcut icon" href="{{layout.favicon}}"> {#- -#}
3333
{%- else -%}
34-
<link rel="icon" type="image/svg+xml" {# -#}
35-
href="{{static_root_path | safe}}favicon{{page.resource_suffix}}.svg"> {#- -#}
3634
<link rel="alternate icon" type="image/png" {# -#}
3735
href="{{static_root_path | safe}}favicon-16x16{{page.resource_suffix}}.png"> {#- -#}
3836
<link rel="alternate icon" type="image/png" {# -#}
3937
href="{{static_root_path | safe}}favicon-32x32{{page.resource_suffix}}.png"> {#- -#}
38+
<link rel="icon" type="image/svg+xml" {# -#}
39+
href="{{static_root_path | safe}}favicon{{page.resource_suffix}}.svg"> {#- -#}
4040
{%- endif -%}
4141
{{- layout.external_html.in_header | safe -}}
4242
<style type="text/css"> {#- -#}

0 commit comments

Comments
 (0)