about summary refs log tree commit diff
diff options
context:
space:
mode:
authorskim <skim@swainslane.co>2021-08-12 21:08:14 -0700
committerskim <skim@swainslane.co>2021-08-12 21:08:14 -0700
commit474ba60f0403b6691b1483e3aebbb419c07f4ea1 (patch)
tree9d9868b138a48cb46a132d49182b3c955c0282f9
parent61885df263f1f4fb992189f0d149bebcf2b698ca (diff)
downloadrust-474ba60f0403b6691b1483e3aebbb419c07f4ea1.tar.gz
rust-474ba60f0403b6691b1483e3aebbb419c07f4ea1.zip
Updates favicon order of precedence as it matters to Chrome
-rw-r--r--src/librustdoc/html/templates/page.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html
index cc9c488db7c..38dc3b30e72 100644
--- a/src/librustdoc/html/templates/page.html
+++ b/src/librustdoc/html/templates/page.html
@@ -31,12 +31,12 @@
     {%- if layout.favicon -%}
         <link rel="shortcut icon" href="{{layout.favicon}}"> {#- -#}
     {%- else -%}
-        <link rel="icon" type="image/svg+xml" {# -#}
-            href="{{static_root_path | safe}}favicon{{page.resource_suffix}}.svg"> {#- -#}
         <link rel="alternate icon" type="image/png" {# -#}
             href="{{static_root_path | safe}}favicon-16x16{{page.resource_suffix}}.png"> {#- -#}
         <link rel="alternate icon" type="image/png" {# -#}
             href="{{static_root_path | safe}}favicon-32x32{{page.resource_suffix}}.png"> {#- -#}
+        <link rel="icon" type="image/svg+xml" {# -#}
+            href="{{static_root_path | safe}}favicon{{page.resource_suffix}}.svg"> {#- -#}
     {%- endif -%}
     {{- layout.external_html.in_header | safe -}}
     <style type="text/css"> {#- -#}