diff --git a/doc/build/templates/layout.mako b/doc/build/templates/layout.mako
index c8765ef3de96315eb3db922645f1587e259c6d1f..44a23628b28ef9b24a9aace3042dc7aac5ccddc4 100644
--- a/doc/build/templates/layout.mako
+++ b/doc/build/templates/layout.mako
@@ -44,7 +44,6 @@ withsidebar = bool(toc) and current_page_name != 'index'
     % for scriptfile in script_files + self.attr.local_script_files:
         <script type="text/javascript" src="${pathto(scriptfile, 1)}"></script>
     % endfor
-    <script type="text/javascript" src="${pathto('_static/init.js', 1)}"></script>
     % if hasdoc('about'):
         <link rel="author" title="${_('About these documents')}" href="${pathto('about')}" />
     % endif
diff --git a/doc/build/templates/makoorg/root.mako b/doc/build/templates/makoorg/root.mako
index 64ae564de26b4ee9b80619326fc46ed39f7ede36..35240d89160e11dcb543ee77c67a1a059cd64afd 100644
--- a/doc/build/templates/makoorg/root.mako
+++ b/doc/build/templates/makoorg/root.mako
@@ -39,7 +39,7 @@ Mako Templates for Python
 
     </div>
 
-    <a href="/"><img src="${pathto('_static/makoLogo.png', 1)}" /></a>
+    <a href="${site_base}/"><img src="${pathto('_static/makoLogo.png', 1)}" /></a>
 
     <hr/>