Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Mediumish does not support cascaded menus #31

Open
yesitsme007 opened this issue Sep 20, 2020 · 1 comment
Open

Mediumish does not support cascaded menus #31

yesitsme007 opened this issue Sep 20, 2020 · 1 comment

Comments

@yesitsme007
Copy link

Hugo supports cascaded menus by defining a "parent" property. Unfortunately this is not supported by the Mediumish theme. It is simply ignored. It was quite a frustrating experience when I tried to define a menu with parent and it did not work. You have no clue if there is something wrong in the menu definition or why it does not work. It took me quite a while until I found out that it is the template which prevented it from working (and there seem to be many other templates with this restriction). Unfortunately the documentation of menus is poor in the Hugo docs which does not make thing easier.

I tried to make it working and submit this as PR #30

My use case is a quick navigation if you have many blog entries. I added an example to the example site:

CascadedMenu

@lgaida
Copy link
Owner

lgaida commented Oct 4, 2020

Hi thanks for your effort.

I remember that i tried to do this when i ported this theme from the original jekyll theme but gave up after a few tries. I was and still am a newbie to gohugo. The documentation of gohugo has also changed and new features were added. Looked like to much effort for me, since i just wanted to take advantage of the nice and clean css/design.
Can you add a description for this to the readme.md? I will try to recreate your example and merge your PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants