Support for menus with sections and optional image#257
Conversation
|
@GeorgeWL @ryanfox1985 Hi, just wanted to see if we could get this merged at some point, I know it was mentioned recently on the 2 year old PR that you'd accept it if the merge conflicts were removed. |
|
@ryanfox1985 @GeorgeWL any chance of getting this merged? Wasn't sure if it was blocked behind something else. Thanks! |
|
I will test it during the week. |
| to indicate in which column a section will be put in. Within a column, the `weight` value is respected to show the | ||
| sections top to bottom. | ||
|
|
||
| Use to the unique section identifier (e.g. `section.ap-blog`) as the `parent` value to add a menu item to a specific |
There was a problem hiding this comment.
Use to the unique ...
I see a typo now in my own 2-year old work. 😜
There was a problem hiding this comment.
ha, removing just one word isn't the worst thing 😛
|
This PR has some serious deficiencies which should be solved before merging:
|
|
@salim-b I may be out of my element here since I was just forward-porting someone else's code and it worked ok on my site. I'm not sure what you mean by navigation highlighting. I'm running this code on my site as i roll over the top level menu items as well as the sub menu items they do highlight. Is there another type of highlighting is broken? That said I didn't realize there was a version of universal theme that had this already unreleased so if you don't think it's worth taking the change maybe we can just drop it. |
Yes, the respective top level item should stay highlighted when the corresponding page is visited 😉
I don't really understand what you mean by "already unreleased", but there is ongoing effort to port this whole hugo theme to the new Universal v2 upstream theme in #246
Personally I don't need the extended menus, so I probably won't put much work into improving this PR. But since there's no ETA for #246, it might make sense for others to do that work... |
|
shall I close #101 in favour of this PR? |
it's not working well the highlighting menu. |
|
closed in favour of #307 |
This is a port of the 2-year old PR #111 so it can be merged cleanly originally written by @ringods
This PR offers:
Part of #101