39 lines
730 B
Markdown
39 lines
730 B
Markdown
---
|
|
title: "Manage Your Menu"
|
|
description: Define a sidebar menu
|
|
date: 2019-05-02T19:06:29+02:00
|
|
draft: true
|
|
---
|
|
|
|
Menu in the sidebar can be defined within the `config.toml` or directly in the files.
|
|
I prefer the config file approach, as this menu is pretty simple.
|
|
|
|
<!--more-->
|
|
|
|
The following setup will define 3 URLs in your sidebar menu, in order of weight.
|
|
|
|
```TOML
|
|
[menu]
|
|
|
|
[[menu.main]]
|
|
identifier = "about"
|
|
name = "About"
|
|
title = "About section"
|
|
url = "/about/"
|
|
weight = -120
|
|
|
|
[[menu.main]]
|
|
identifier = "portfolio"
|
|
name = "Portfolio"
|
|
title = "Portfolio"
|
|
url = "/portfolio/"
|
|
weight = -110
|
|
|
|
[[menu.main]]
|
|
identifier = "blog"
|
|
name = "Post"
|
|
title = "Blog section"
|
|
url = "/post/"
|
|
weight = -100
|
|
|
|
``` |