diff --git a/doc/_layouts/_base.html b/doc/_layouts/_base.html
index fbd5f06..03f48a4 100644
--- a/doc/_layouts/_base.html
+++ b/doc/_layouts/_base.html
@@ -15,8 +15,13 @@
{% set theme_path = "bootstrap/" + bootstrap + "/css" %}
{% endif %}
-
-
+
+ {% set url_prefix = '' %}
+ {% if site.baseurl %}
+ {% set url_prefix = '/' + site.baseurl %}
+ {% endif %}
+
+
@@ -46,12 +51,12 @@
- {{site.brand}}
+ {{site.brand}}
- {% block home %}
+ {% block home %}
{% endblock %}
{% for item in site.reflinks['/'].content[:-navbar_right_items] %}
{% set context = '' %}
@@ -63,7 +68,7 @@
{{item.title}}
@@ -84,7 +89,7 @@
{{item.title}}
diff --git a/doc/_layouts/page.html b/doc/_layouts/page.html
index 69de5d3..8985400 100644
--- a/doc/_layouts/page.html
+++ b/doc/_layouts/page.html
@@ -6,7 +6,7 @@
{% block breadcrumbs %}
- - Home
+ - Home
{% for bc in this.breadcrumbs[:-1] %}
- {{bc.title}}
{% endfor %}
@@ -15,7 +15,7 @@
{% endblock %}
@@ -23,8 +23,8 @@ {{this.title}}
{% block sidebar %}
-
- {% if this.toc %}
+
+ {% if this.toc %}
+
{% endblock %}