X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/775174e2210a0c8c0660a7a4f1bc3d7c40aa4c4b..86c75e05167a0af5a9b0d20dccbeb906300c1414:/_plugins/menu.rb?ds=inline 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