Skip to content

Commit

Permalink
Added yaml menu example
Browse files Browse the repository at this point in the history
Added yaml menu example, matching with existing toml example. Also added link to sitewide config page.
  • Loading branch information
rahul286 authored and spf13 committed Aug 18, 2014
1 parent 2f171f3 commit b8c708f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/content/extras/menus.md
Expand Up @@ -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):

Expand All @@ -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.
Expand Down

0 comments on commit b8c708f

Please sign in to comment.