diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
index aa33576a7..e41b68b17 100644
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -1,10 +1,12 @@
{% extends "!layout.html" %}
{% block extrahead %}
+{%- if not embedded %}
+{% endif %}
{% endblock %}
{% block rootrellink %}