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