Sync the YAML config menu example with TOML's

Also remove the "---" delimiters as the presences of those would cause one to
think that that config is in front-matter instead of in site config.

Fixes https://github.com/gohugoio/hugoDocs/issues/397
This commit is contained in:
Kaushal Modi 2018-03-08 16:48:37 -05:00
parent b9505fc70b
commit fe0ad9d9d4

View File

@ -137,19 +137,17 @@ Heres an example snippet pulled from a `config.toml`:
Here's the equivalent snippet in a `config.yaml`:
{{< code file="config.yml" >}}
---
menu:
docs:
- Name: "about hugo"
Pre: "<i class='fa fa-heart'></i>"
Weight: -110
Identifier: "about"
URL: "/about/"
- Name: "getting started"
Pre: "<i class='fa fa-road'></i>"
Weight: -100
URL: "/getting-started/"
---
main:
- name: "about hugo"
pre: "<i class='fa fa-heart'></i>"
weight: -110
identifier: "about"
url: "/about/"
- name: "getting started"
pre: "<i class='fa fa-road'></i>"
weight: -100
url: "/getting-started/"
{{< /code >}}
{{% note %}}