diff --git a/_includes/base.html b/_includes/base.html
index 43dfc7c3..ff5abe93 100644
--- a/_includes/base.html
+++ b/_includes/base.html
@@ -4,3 +4,6 @@
{% elsif depth == 2 %}{% assign base = '../' %}
{% elsif depth == 3 %}{% assign base = '../../' %}
{% elsif depth == 4 %}{% assign base = '../../../' %}{% endif %}
+{% elsif depth == 5 %}{% assign base = '../../../../' %}{% endif %}
+{% elsif depth == 6 %}{% assign base = '../../../../../' %}{% endif %}
+{% elsif depth == 7 %}{% assign base = '../../../../../../' %}{% endif %}