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