develop a new style
[web.git] / _plugins / menu.rb
index 37c0851..48befa7 100644 (file)
@@ -30,6 +30,10 @@ module Jekyll
                 sub_nodes.each { |page| page['class'] = 'child' }
               end
             end
+            # remember the root
+            if base == ""
+              menu_node['class'] += ' root'
+            end
             # store menu node
             result.push(menu_node)
           end