mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
1 parent
2d0f38978b
commit
c3088c4fcd
1 file changed
+7
-15
@@ -12,7 +12,7 @@ menu:
|
|||||||
docs:
|
docs:
|
||||||
parent: "content-management"
|
parent: "content-management"
|
||||||
weight: 120
|
weight: 120
|
||||||
weight: 120 #rem
|
weight: 120
|
||||||
aliases: [/extras/menus/]
|
aliases: [/extras/menus/]
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
@@ -48,31 +48,24 @@ If all you need to do is add an entry to a menu, the simple form works well.
|
|||||||
|
|
||||||
#### A Single Menu
|
#### A Single Menu
|
||||||
|
|
||||||
```
|
{{< code-toggle >}}
|
||||||
---
|
|
||||||
menu: "main"
|
menu: "main"
|
||||||
---
|
{{< /code-toggle >}}
|
||||||
```
|
|
||||||
|
|
||||||
#### Multiple Menus
|
#### Multiple Menus
|
||||||
|
|
||||||
```
|
{{< code-toggle >}}
|
||||||
---
|
|
||||||
menu: ["main", "footer"]
|
menu: ["main", "footer"]
|
||||||
---
|
{{< /code-toggle >}}
|
||||||
```
|
|
||||||
|
|
||||||
#### Advanced
|
#### Advanced
|
||||||
|
|
||||||
|
{{< code-toggle >}}
|
||||||
```
|
|
||||||
---
|
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: 'extras'
|
parent: 'extras'
|
||||||
weight: 20
|
weight: 20
|
||||||
---
|
{{< /code-toggle >}}
|
||||||
```
|
|
||||||
|
|
||||||
## Add Non-content Entries to a Menu
|
## Add Non-content Entries to a Menu
|
||||||
|
|
||||||
@@ -130,7 +123,6 @@ A common use case is to define a custom param to add a css class to a specific m
|
|||||||
class = "highlight-menu-item"
|
class = "highlight-menu-item"
|
||||||
{{</ code-toggle >}}
|
{{</ code-toggle >}}
|
||||||
|
|
||||||
|
|
||||||
## Render Menus
|
## Render Menus
|
||||||
|
|
||||||
See [Menu Templates](/templates/menu-templates/) for information on how to render your site menus within your templates.
|
See [Menu Templates](/templates/menu-templates/) for information on how to render your site menus within your templates.
|
||||||
|
|||||||
Reference in new issue
Block a user