forestryio / jekyll-menus

A menus (site navigation) plugin for your Jekyll website that also works with https://forestry.io (Jekyll CMS)
MIT License
134 stars 27 forks source link

How it works #11

Closed AngelGordillo closed 6 years ago

AngelGordillo commented 6 years ago

Hello, I'm trying also to make an easy menu with 2 levels, something like a book -Main -Chapter1 -Chapter1.1 -Chapter1.1 and so on... My menu is this:


And my pages: layout: default menus: header: title: Main weight: 1 parent:

layout: default menus: header: title: Child1 weight: 2 children:

Maybe it's stupidly easy, but I can't Also are my first steps with Jekyll :)

envygeeks commented 6 years ago

Hi @AngelGordillo can you explain the problem you are having? I see source code an a mention of a problem but I don't see an explicit problem listed in your ticket.

Thanks!

AngelGordillo commented 6 years ago

Hi @envygeeks I have the code that I wrote and the result is image Then I would like to have a menu with childs, maybe I'm doing something wrong. my question is, how can I make children and parents? Thanks!

envygeeks commented 6 years ago

See: https://github.com/forestryio/jekyll-menus#sub-menus

AngelGordillo commented 6 years ago

Thanks @envygeeks now I understand it better. I'm working on it