Fix grid html
diff --git a/pelicanconf.py b/pelicanconf.py
index a8f17dd..0075d69 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -48,9 +48,8 @@
 
 STATIC_PATHS = []
 for root, _, _ in os.walk(PATH):
-    basepath = root.replace(PATH + os.sep, '')
     for adir in ['css', 'js', 'images', 'fo', 'svg', 'schema', 'stylesets']:
-        STATIC_PATHS.append(os.path.join(basepath, adir))
+        STATIC_PATHS.append(os.path.join(root, adir).replace(PATH + os.sep, ''))
 
 #MARKDOWN = {
 #    'extensions': ['mdx_include']
diff --git a/theme/templates/base.html b/theme/templates/base.html
index d08b026..20a0006 100644
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -48,13 +48,24 @@
     {% include 'xgc-top.html' %}
 {% endif %}  
 
-      {% block content %}
       <div id="content" class="grid_16">
         <div id="items">
         </div>
-      	
-      </div>
+      	<div class="section-content"><style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>        
+      {% block content %}
       {% endblock %}
+        </div>
+      </div>
       <div class="clear"></div>
 
       {% include 'bottom.html' %}