diff --git a/content/extras/menus.md b/content/extras/menus.md index 957432567..fcf90096f 100644 --- a/content/extras/menus.md +++ b/content/extras/menus.md @@ -96,10 +96,12 @@ Here’s an example `config.toml`: pre = "" weight = -110 identifier = "about" + url = "/about/" [[menu.main]] name = "getting started" pre = "" weight = -100 + url = "/getting-started/" And the equivalent example `config.yaml`: @@ -110,11 +112,16 @@ And the equivalent example `config.yaml`: Pre: "" Weight: -110 Identifier: "about" + Url: "/about/" - Name: "getting started" Pre: "" Weight: -100 + Url: "/getting-started/" --- + +**NOTE:** The urls must be relative to the context root. If the `BaseUrl` is `http://example.com/mysite/`, then the urls in the menu must not include the context root `mysite`. + ## Nesting All nesting of content is done via the `parent` field.