diff --git a/_includes/favicon.html b/_includes/favicon.html
new file mode 100644
index 0000000000000000000000000000000000000000..12c279ef7f462ac02a4856dd1b1aeacbbb6205dd
--- /dev/null
+++ b/_includes/favicon.html
@@ -0,0 +1 @@
+<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
diff --git a/_includes/head.html b/_includes/head.html
index 4f22497bb19f1c3cb3dff6771d3c8c8f37c63c3b..1e4f90e06cc92a51f494a95738609bee7d0ecda4 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -10,7 +10,7 @@
     {% endif %}
   {% endunless %}
 
-  <link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
+  {% include favicon.html %}
 
   <link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | absolute_url }}">