diff --git a/templates/rustdoc/head.html b/templates/rustdoc/head.html
index 1c5600ab0..de9df7021 100644
--- a/templates/rustdoc/head.html
+++ b/templates/rustdoc/head.html
@@ -6,7 +6,9 @@
{%- let build_slug2 = slug::slugify(crate::BUILD_VERSION) -%}
{%- endif -%}
-
+ {%- if let Some(css_file) = rustdoc_css_file -%}
+
+ {%- endif -%}