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