Added yaml menu example
authorRahul Bansal <rahul.bansal@rtcamp.com>
Fri, 15 Aug 2014 19:02:24 +0000 (00:32 +0530)
committerspf13 <steve.francia@gmail.com>
Mon, 18 Aug 2014 15:30:00 +0000 (11:30 -0400)
Added yaml menu example, matching with existing toml example. Also added link to sitewide config page.

docs/content/extras/menus.md

index 24b24b775fe68180d61dbef244b3c5c400753299..59480168e45ab9d8b4f3b256d86f5f88971647f0 100644 (file)
@@ -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 = "<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
 
 All nesting of content is done via the `parent` field.