mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 16:19:37 -04:00
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:
parent
b9505fc70b
commit
fe0ad9d9d4
@ -137,19 +137,17 @@ Here’s 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 %}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user