X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/775174e2210a0c8c0660a7a4f1bc3d7c40aa4c4b..13da1389f30dda627aa30ef0eefe56499d6ed001:/_plugins/menu.rb?ds=sidebyside diff --git a/_plugins/menu.rb b/_plugins/menu.rb index 37c0851..48befa7 100644 --- a/_plugins/menu.rb +++ b/_plugins/menu.rb @@ -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