This commit is contained in:
wvr
2023-05-14 16:02:52 -05:00
commit b79f3a518d
256 changed files with 9156 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
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
```