mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00: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:
1 parent
b9505fc70b
commit
fe0ad9d9d4
1 file changed
+10
-12
@@ -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 %}}
|
||||||
|
|||||||
Reference in new issue
Block a user