Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Menu code #46
Code Change Request
Is your request related to a problem?
The current code base makes use of the
Even though this works, this is not the intended role of this field. This field serves as a unique ID for the menu entry so that its children be associate themselves with it using their
[[menu.main]] name = "About" url = "page/about/" weight = 1 [[menu.main]] name = "Math Resources" url = "math-live-preview" weight = 2 [[menu.main]] parent="Math Resources" name = "Math Editor" url = "math-live-preview" weight = 1 [[menu.main]] parent="Math Resources" name = "Math.SE Comments" url = "page/math-se-comment-templates/" weight = 2
(Edited: typo made in the first version of this comment. I intended to say to handle both "old" and "new" types of
so that the following example in Hugo's docs for Menus would work.
[menu] [[menu.main]] identifier = "about" name = "about hugo" pre = "<i class='fa fa-heart'></i>" url = "/about/" weight = -110 [[menu.main]] name = "getting started" post = "<span class='alert'>New!</span>" pre = "<i class='fa fa-road'></i>" url = "/getting-started/" weight = -100
In addition, provided that we've support for the