mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 04:24:42 -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`:
|
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 %}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user