X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/775174e2210a0c8c0660a7a4f1bc3d7c40aa4c4b..79adcb5b3c2c7d11e54a3abd667d26b48e070584:/_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