initial
This commit is contained in:
39
persimmon/content/post/manage-your-menu.md
Normal file
39
persimmon/content/post/manage-your-menu.md
Normal 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
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user