hugo-book icon indicating copy to clipboard operation
hugo-book copied to clipboard

hugo's own menu

Open evanescente-ondine opened this issue 2 years ago • 3 comments

I just noticed there was a native hugo menu, and this theme ignored the parameters. Did I do something wrong ? I literally copied and pasted the gohugo example code (decommented, obviously).

evanescente-ondine avatar Aug 19 '22 15:08 evanescente-ondine

Hi! Which parameters were ignored? There are 2 menus in theme, before and after, but not main

alex-shpak avatar Sep 06 '22 08:09 alex-shpak

huh, well, you just solved the issue. one caveat I hadn't paid attention to... Now that I learnt to read the code like a chad, I see not only how you wrote things, but I can add new menus and put them anywhere. Thanks for your great work !

Message ID: @.***>

evanescente-ondine avatar Sep 06 '22 10:09 evanescente-ondine

However I have another problem with menus, which seems to be a theme issue. I want menu entries to be numbered, like chapters or sections in a book. I tried to change ul for ol in partials/docs/menu-filetree.html but while it does number them, it also flats out all entries. image_menu

evanescente-ondine avatar Sep 07 '22 16:09 evanescente-ondine

Hi! You can check how it is done in https://github.com/alex-shpak/hugo-book/blob/master/assets/plugins/_numbered.scss Kinda overcomplicated, but it works for multilevel ul nubering.

alex-shpak avatar Nov 02 '22 23:11 alex-shpak