ref: 6e15f652bdef4f7e9d9c9b4c0cd764707aa7e48e
parent: 5d8ac54f732dc2e6a02c13290100836ddb3faa11
author: Rahul Bansal <[email protected]>
date: Fri Aug 15 20:32:24 EDT 2014
Added yaml menu example Added yaml menu example, matching with existing toml example. Also added link to sitewide config page.
--- a/docs/content/extras/menus.md
+++ b/docs/content/extras/menus.md
@@ -87,7 +87,7 @@
## 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):
@@ -100,6 +100,20 @@
name = "getting started"
pre = "<i class='fa fa-road'></i>"
weight = -100
+
+Here’s an example (in yaml):
+
+ ---
+ menu:
+ main:
+ - Name: "about hugo"
+ Pre: "<i class='fa fa-heart'></i>"
+ Weight: -110
+ Identifier: "about"
+ - Name: "getting started"
+ Pre: "<i class='fa fa-road'></i>"
+ Weight: -100
+ ---
## Nesting