chipsenkbeil / grid-side

Personal portfolio and blog for use by the Hugo generator.
MIT License
32 stars 21 forks source link

Option to remove 'post' from Main menu #22

Closed dixonge closed 8 years ago

dixonge commented 8 years ago

Although I have left all of my blog posts as individual markdown files under /post/ I have customized my menu, mainly using category to organize my blog posts. So I don't need a menu item for 'post' - but I can't find where that is being inserted, other than perhaps some default Hugo functionality. Is this something that I need to change in the theme, or is it in the main Hugo code?

chipsenkbeil commented 8 years ago

Did you set SectionPagesMenu = "Main" like in the docs here? That injects all of the sections as menu items. If you look at my site here, you'll see that I am explicitly setting individual menu items. If you do it that way, you shouldn't have your post section appear unless you set it yourself.

dixonge commented 8 years ago

ok, so it's an either/or option? I just commented out the 'SectionPagesMenu' line, and now my menu looks like I expected! Three main menu items, one with 3-4 sub-menus. Perfect!

chipsenkbeil commented 8 years ago

Yep. Either/or scenario. That option is meant for those that want a quick menu based on their sections. For more in-depth menus (and nested menus), you need to explicitly define it as they define in the documentation. Since it works for you now, going to close the issue. :)