From 6e15f652bdef4f7e9d9c9b4c0cd764707aa7e48e Mon Sep 17 00:00:00 2001 From: Rahul Bansal Date: Sat, 16 Aug 2014 00:32:24 +0530 Subject: [PATCH] Added yaml menu example Added yaml menu example, matching with existing toml example. Also added link to sitewide config page. --- docs/content/extras/menus.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/content/extras/menus.md b/docs/content/extras/menus.md index 24b24b775..59480168e 100644 --- a/docs/content/extras/menus.md +++ b/docs/content/extras/menus.md @@ -87,7 +87,7 @@ available. ## Adding (non-content) entries to a menu You can also add entries to menus that aren’t attached to a piece of -content. This takes place in the site wide config file. +content. This takes place in the site wide [config file](http://hugo.spf13.com/overview/configuration). Here’s an example (in toml): @@ -101,6 +101,20 @@ Here’s an example (in toml): pre = "" weight = -100 +Here’s an example (in yaml): + + --- + menu: + main: + - Name: "about hugo" + Pre: "" + Weight: -110 + Identifier: "about" + - Name: "getting started" + Pre: "" + Weight: -100 + --- + ## Nesting All nesting of content is done via the `parent` field.