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`: Here's the equivalent snippet in a `config.yaml`:
{{< code file="config.yml" >}} {{< code file="config.yml" >}}
---
menu: menu:
docs: main:
- Name: "about hugo" - name: "about hugo"
Pre: "<i class='fa fa-heart'></i>" pre: "<i class='fa fa-heart'></i>"
Weight: -110 weight: -110
Identifier: "about" identifier: "about"
URL: "/about/" url: "/about/"
- Name: "getting started" - name: "getting started"
Pre: "<i class='fa fa-road'></i>" pre: "<i class='fa fa-road'></i>"
Weight: -100 weight: -100
URL: "/getting-started/" url: "/getting-started/"
---
{{< /code >}} {{< /code >}}
{{% note %}} {{% note %}}